Help: Multipage Counter on php dynamic templates

Discussion in 'PHP' started by Skillman13, Oct 26, 2009.

  1. #1
    I need a counter on a template, the url for the pages are 'template.php?&id=1'

    -So depending on the id, is the record in the table 'Gamepage'

    I've added another field to the table, 'counter' i want it to increase by one every time the page is viewed,

    So each record (and page template.php?&id=1, template.php?&id=2, template.php?&id=3 etc) will have a counter field -which i can recall/display myself later.

    Any idea how i can do this? -I've found counters, but i don't think they work on templates -dynamic pages or whatever...

    Any help would be greatly appreciated :)

    Thanks,
     
    Skillman13, Oct 26, 2009 IP
  2. Skillman13

    Skillman13 Peon

    Messages:
    229
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any help? :) Or a link to a page with help on?
     
    Skillman13, Oct 27, 2009 IP
  3. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Add counter field in the database table.
    You put the query to add counter's value by one every time the page containg the record's detail is loaded.
    That's the logic..
     
    Gungz, Oct 27, 2009 IP
  4. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add counter field in the database table.
    You put the query to add counter's value by one every time the page containing the record's detail is loaded.
    That's the logic..
     
    Gungz, Oct 27, 2009 IP
  5. Skillman13

    Skillman13 Peon

    Messages:
    229
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, i know that :p But how do i do that query?
     
    Skillman13, Oct 27, 2009 IP