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? Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.