forumnz Posted June 7, 2008 Share Posted June 7, 2008 I want to update a db row +15.. This is what I have so far.. mysql_query("UPDATE webdevscon SET bal = +15 WHERE id='$wdid'"); Why won't this work? Link to comment https://forums.phpfreaks.com/topic/109189-is-there-a-simple-way-to-15-to-a-value-in-a-database/ Share on other sites More sharing options...
DarkWater Posted June 7, 2008 Share Posted June 7, 2008 $query = "UPDATE webdevscon SET bal = bal+15 WHERE id='$wdid'"; $result = mysql_query($query) or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/109189-is-there-a-simple-way-to-15-to-a-value-in-a-database/#findComment-560099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.