nebuLa Posted December 9, 2006 Share Posted December 9, 2006 I want to echo the total games played on my index page of my arcade(http://www.wallofflames.com/arcade). The script does track the totals, but how would I go about grabbing the total of all games played from the database?Would anyone here know how I would grab the total games played from the database? BTW, this forum seems like a great site and I'm sure I will learn a lot here :-)TIA Link to comment https://forums.phpfreaks.com/topic/30046-total-games-played/ Share on other sites More sharing options...
hitman6003 Posted December 9, 2006 Share Posted December 9, 2006 Use a SUM query...[code]SELECT SUM(gamesplayed) as total_games_played_for_site FROM games[/code] Link to comment https://forums.phpfreaks.com/topic/30046-total-games-played/#findComment-138136 Share on other sites More sharing options...
nebuLa Posted December 9, 2006 Author Share Posted December 9, 2006 [quote author=hitman6003 link=topic=117987.msg481776#msg481776 date=1165691604]Use a SUM query...[code]SELECT SUM(gamesplayed) as total_games_played_for_site FROM games[/code][/quote]Thanks SOOOO much. That worked great! Link to comment https://forums.phpfreaks.com/topic/30046-total-games-played/#findComment-138165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.