Making a top 10 in my site

bananow's Avatar, Join Date: Mar 2010
Light Poster
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,

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.