Simple Php Script

Simple php project to return a 20 ten list from the mysql database.

the logic is setup as follows

number of page hits divided by age of creation date.

In other words, say a page has 2754 hits but is 75 days old. The page would have a weighted rank of 36 hits. Another page has 100 hits and is 2 days old. It would have a rank of 50 and therefore would be in the number one spot, etc.

The results for the top 20 list would be displayed on an existing php page.

This should be a snap for an experienced php/ mysql dbase person.

Leave a Reply

Your email address will not be published. Required fields are marked *