I have a query that looks like this:
$sql = "UPDATE tbl SET amt_field='amt_field+1' WHERE username='" .mysql_real_escape_string($_SESSION['username']). "'"; mysql_select_db('db',$con); mysql_query($sql,$con);
I want to increase the value as much as possible.
I tried:
"UPDATE tbl SET amt_field='amt_field+1' WHERE "UPDATE tbl SET amt_field='amt_field' + 1 WHERE "UPDATE tbl SET amt_field='amt_field++' WHERE
I do not receive error messages, but the value in my db also does not increase.
source share