MySQL Forums
Forum List  »  Newbie

Re: Display sum of table in one line of text?
Posted by: Matthew Jones
Date: March 28, 2005 02:43PM

hmmmmm.
Yea, it sort of looks like what I am after, but Im not exactly sure how I would make it function.

I just want it to say:

Total Number of Terrorist Killed = (Total of Kills column here)
Total Number of Friendly Losses = (Total of Deaths column here)
Team Skill Score = (Total Kills / Total Deaths = Score)



I figured that if I can make one line work, it is just a case of copying the same bit of code for the other, modifying the differing values between them.

I have tried many variations of code, but the most I managed to get displayed was 'Resource Id=6'. lol

I am a complete novice to php/mysql (started learning on Saturday), so please make things very clear. I have looked at those MySQL reference manuals, and tbh, they are very hard to follow for someone who is completely new to it. :(

Thanks for your help. :)

Options: ReplyQuote


Subject
Written By
Posted
Re: Display sum of table in one line of text?
March 28, 2005 02:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.