Ok, i am new here and still learning sql, i have made a table called users and inside points default 5.
and when they submit the form i use this to update it +5 points.
[PHP]$sql = INSERT INTO 'users' SET 'points'=[+5] WHERE 'userid'= '$userid';
$result = mysql_query($sq l ,$db);[/PHP]
But the value never changes from 5 to 10?
Can anyone please help me!
and when they submit the form i use this to update it +5 points.
[PHP]$sql = INSERT INTO 'users' SET 'points'=[+5] WHERE 'userid'= '$userid';
$result = mysql_query($sq l ,$db);[/PHP]
But the value never changes from 5 to 10?
Can anyone please help me!
Comment