Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

algebraic equations and mysql

Status
Not open for further replies.

LadyDivine

Programmer
Jun 25, 2005
1
US
For obvious reasons (game exploiting) in the game we are building we cannot use the php arithmetic.

We are attempting to add these two equations in a mysql form

$a / 1000 + $b = $c
$c / 1000 + $d = $e

We have spent half the night researching and attempting to figure out how to do so. This is our final attempt before making an extra column in our database table which is the last thing we want to do.

The whole thing is coverting game money.

$a = gold
$b = silver
$d = copper

We only have one column with the copper making it easier for players to convert their money when purchasing.

We know in php it's possible, but it's easy to duplicate money that way.

Any ideas on what we can do to fix this?
 
It's not very clear what you are trying to do here. What columns do you have in the table, and what results do you want the query to return?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top