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 Quote Link to comment 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] Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.