coolant Posted November 1, 2005 Share Posted November 1, 2005 Ugh, I just can't think how to do this on the top of my head. I want to add a specific amount to a mysql value. I know it's like UPDATE value + value2 or something... Please somebody help me ;) Link to comment Share on other sites More sharing options...
0 D.J.P Posted November 1, 2005 Share Posted November 1, 2005 mysql_query("UPDATE table SET value = value + value2 where blah = 'blah'") that what you are looking for? Link to comment Share on other sites More sharing options...
0 coolant Posted November 1, 2005 Author Share Posted November 1, 2005 perfect. Ugh, it was driving me up the wall - such a simple concept. Thanks! Link to comment Share on other sites More sharing options...
Question
coolant
Ugh, I just can't think how to do this on the top of my head.
I want to add a specific amount to a mysql value.
I know it's like UPDATE value + value2 or something...
Please somebody help me ;)
Link to comment
Share on other sites
2 answers to this question
Recommended Posts