Game counter need 1000 diffrent scripts?

Discussion in 'PHP' started by satyrion, Oct 22, 2007.

  1. #1
    I got a gaming site with 1000 diffrent games, and i want tracking/counter how many times each game has been played. Do i need to make 1000 Unique scripts for this? Is there a faster way to do it?
     
    satyrion, Oct 22, 2007 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Create a database table with the game id and the count of how many visits. Then add code which increments the counter for that game id to the game page.

    if your site is something like game.php?id=7 , then you can use $_GET['id'] to find the current game id.
     
    matthewrobertbell, Oct 22, 2007 IP