code to show how many visitor saw this page

Discussion in 'PHP' started by temon, Feb 18, 2009.

  1. #1
    code to show how many visitor saw this page

    like this games played xxx time
    this story viewed xxx time

    this clip viewed xxx time ???
     
    temon, Feb 18, 2009 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    ads2help, Feb 19, 2009 IP
  3. maneetpuri

    maneetpuri Active Member

    Messages:
    152
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Hi,

    The script ads2help has recomended is a good script to accomplish what you need.

    But if you are using database then what you can do is, add a new field for visiti count and every time the page is being viewed update this field by adding one to the current value. Now you can use this field whereever you want to show how many visitors have viewed it.

    Cheers,

    ~Maneet
     
    maneetpuri, Feb 19, 2009 IP
  4. Sayed Moh

    Sayed Moh Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks guys
    i needed this one too
     
    Sayed Moh, Feb 19, 2009 IP