Jump to content

[SOLVED] wrong result from UPDATE query.


MasterACE14

Recommended Posts

I have this basic UPDATE query...

UPDATE `UserDetails` SET `gold`=`gold`+((`untrainedSold`*10)+(`miners`*25))

 

untrainedSold has the value 181

 

and miners is 3,593

 

The value I am expecting to be added to gold from this query is 91,635

 

but its currently adding around 7 million.

 

Any ideas why?

Link to comment
https://forums.phpfreaks.com/topic/128693-solved-wrong-result-from-update-query/
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.