Perfect! Exactly what I was looking for, thanks alot!
Had to tweak the code a little tho, or I'd also get the total XP for users who didn't have an alliance, but now it works as it should. :)
The final query is:
SELECT tbluser.uAllID, tblalliance.allName, SUM(tblbase.basXP) AS allXP FROM...
Hi guys,
Sorry if the title is a little cryptic, but I really don't know how to describe this problem.
I am currently developing a browser based game, where each player has one or more bases. Each base has an amount of XP, so the user's total XP is the sum of all his bases XP.
I use this total...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.