Steve Marquez wrote:
Greetings,

Can any of you point me in the right direction on how to use PHP to create a
most viewed or most clicked articles list? Can it be done with PHP?

Thank you so much,

Steve Marquez
[EMAIL PROTECTED]

Short answer, yes.

The right direction would be something like this:

In the article table of your db add a 'reads' field or similar. Modify your article display code so that when it loads it increments the reads field for that article.

Now to display the article with the most reads you just query the article table for the max reads or for all articles and sort on reads, etc...

-Shawn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to