Jump to content

[SOLVED] Plus 1 to mysql value


TEENFRONT

Recommended Posts

Hey

 

Right now im trying to simply "Add 1" to a mysql row value.. But im sure im going the long way round... right now im having to query to the DB get the number from a row then $row[num]++ , Then update the row with the new value...

 

Is there a simple one line query to add a "1" as in "plus 1" to a row value? ?Im sure iv seen it somewhere but for the life of me i cannot find it...

Link to comment
https://forums.phpfreaks.com/topic/136504-solved-plus-1-to-mysql-value/
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.