Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   Making a top 10 in my site (http://www.go4expert.com/forums/10-site-t21645/)

bananow 4Apr2010 01:13

Making a top 10 in my site
 
Hello everyone,
I am currently facing a problem with designing my site. I have an "area" in my site, where I want the most viewed products (which will be on my site) to be displayed. Something like top 10 most viewed articles of my site. How do you make such content display itself automatically according to the amount of times it has been viewed and make this content update itself automatically?
Thank you for your answers,

Tomas

shabbir 4Apr2010 10:14

Re: Making a top 10 in my site
 
First you have to attached a view number to the articles and each time it is viewed you update the count by 1.

Next is you have to query your database for articles sort on the view count.


All times are GMT +5.5. The time now is 19:23.