PHP Classes

Scoreboard: Managing game score information in a database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-03-15 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,363 All time: 2,706 This week: 1,029Up
Version License Categories  
scoreboard 1.0.0GNU General Publi...Databases, Games
Description Author  

This class is meant to manage the information of scores of games played by individual users. The information is stored in SQL based database.

The class provides a function to submit a score given the game name, the player user, and score as an integer value. It also has functions to retrieve the high scores table, as well individual user scores and rankings for this week and the previous week.

Innovation Award  
PHP Programming Innovation award nominee
March 2004
Number 8
Developers that have produced Web sites that maintain games often have the need to keep track of game records like high score tables that register the user and the score that was achieved in a given moment.

This class provides a generic solution to maintain high score tables that can be used by almost any type of game that is based on scores achieved by individual players.

Manuel Lemos
Picture of Duncan Gough
Name: Duncan Gough <contact>
Classes: 2 packages by
Country: United Kingdom United Kingdom
Age: 40
All time rank: 1318 in United Kingdom United Kingdom
Week rank: 255 Down10 in United Kingdom United Kingdom Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Examples.php Example Scoreboard examples
Plain text file Scoreboard.php Class The main Scoreboard class
Plain text file SQL.php Class A Database wrapper
Plain text file SQL_Dictionary.php Class SQL dictionary for use with the database wrapper

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,363All time:2,706
 This week:0This week:1,029Up