article hits

Discussion in 'Web Design, HTML And CSS' started by field, May 4, 2009.

  1. field

    field New Member

    Joined:
    May 4, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.backgroundchecklookup.com
    to all the members, your help are very welcome. i am concerned on how to make list of articles where i can see live hits on the other column whenever an article within my site has been read..

    like:

    ARTICLES HITS
    Article One 22
    Article Two 17

    thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Could not understand if your problem is for storing the counter or displaying it
     
  3. field

    field New Member

    Joined:
    May 4, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.backgroundchecklookup.com
    displaying the number of page views (hits)

    let's say for a template view it will show how many times that template was viewed. but this i wanna show in my site how many times the article was viewed. i don't know if i have explained it right :confused:
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    See you need to do couple of things.

    When someone views the Article you should increase the counter in the database by 1
    Then when someone views the counter or when you want to display it just display the number from the database.
     
  5. field

    field New Member

    Joined:
    May 4, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.backgroundchecklookup.com
    wow.. i think i will really be needing to do a couple of things here... does it mean whenever a page was viewed i will increase the counter on the database manually? sorry.. new with it
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Then who else would do it for you
     
  7. field

    field New Member

    Joined:
    May 4, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.backgroundchecklookup.com
    lol.. i think i will just forget about that.. thanks anyway shabbir
     

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