Best way to create custom counter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonas
Forum Commoner
Posts: 96
Joined: Sun May 23, 2004 9:25 pm

Best way to create custom counter

Post by jonas »

Basically it's easy to just update a variable in the database +1 when the page is accessed, but say I want a counter to appear similar to http://www.ffonline.com where they have graphics for each number 0-9 and it changes automatically with graphics..

How would you do that?

EDIT: Sorry a bit more specific, ffonline.com scroll down and its on the bottom left.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

their hit counter is seperate graphics for each number.. get the count from the database. loop through the string form of the value printing out an image for each number..
Post Reply