Jump to content

[SOLVED] adding up multiple mysql rows


richiec

Recommended Posts

Not really sure how to explain this so ill try best i can any help would be much appreciated because this is really stressing my head out and its probably something soooo simple ill end up crying myself to sleep! lol anyways...

 

Ok i have a website, a kind of auction site but for a game, members of the site earn points by doing different things on the game and then every week they all get to use the points they have earned and stored up to bid on items that we have won.

 

Ok that side of it all works fine, no problems there however i wanted to make a change currently they can only bid on 2 items at a time (which works fine) it will put there first bid value from DB and then add the new bid and then check to see if they have enough points to cover it.. Works fine but the change i want to make right now is to remove that filter so they can bid on any amount of items that they want.

 

The problem i am having with that is because each bid is its own DB row how can i add up each current bid that that person has to check it against the amount of points they have to spend to see if they have earned enough points to cover all of there bids?

 

Hope you understand that and can help as i said its driving me abit crazy hah

 

~Rich

Link to comment
https://forums.phpfreaks.com/topic/161461-solved-adding-up-multiple-mysql-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.