techiefreak05 Posted August 22, 2006 Share Posted August 22, 2006 I have a column in my SQL DB, called zypoints ... how do i ADD to the current value.. lets say you have 5, and you do something where i want it to add 2 to that 5, to make 7, how would i do that? Link to comment https://forums.phpfreaks.com/topic/18311-how-to-add-number-to-mysql-column/ Share on other sites More sharing options...
hitman6003 Posted August 22, 2006 Share Posted August 22, 2006 [code]UPDATE table SET column = column + 5 WHERE id = '$id';[/code] Link to comment https://forums.phpfreaks.com/topic/18311-how-to-add-number-to-mysql-column/#findComment-78649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.