Making a top 10 in my site

Discussion in 'Web Design, HTML And CSS' started by bananow, Apr 3, 2010.

  1. bananow

    bananow New Member

    Joined:
    Mar 24, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice