MySQL Forums
Forum List  »  Newbie

Re: Display sum of table in one line of text?
Posted by: Matthew Jones
Date: March 29, 2005 06:37AM

The table structure basically goes something like this:

Database: tangoforce_com_1
Table: tfcoop
Fields: id (auto-increment), name (text), nat(text), kills (varchar), deaths (varchar), score (decimal)

I hope that is what you mean. :s

The original concept of the new website, was for me to simply enter the additional scores, which the mysql/php then adds to the current user total automatically.

So: User1 total = 467
I submit the results for a game via a form, so 467+5 = 472. 472 is then displayed instead of 467.

I am sure there is quite a simple way to make it do all of this, but being new to it, upon investigation of doing it, I was scared away by all the complexities. :o

Additional scores need to be added by myself, so I can make sure no fake scores are put through the system.

Would it be easier for you to help via email?
If so, you can get me at general[at]tangoforce.com

Thanks for taking the time to help a complete n00b. ;D

Options: ReplyQuote


Subject
Written By
Posted
Re: Display sum of table in one line of text?
March 29, 2005 06:37AM


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.