sql help

i need to update the database with the following code but its not working

[php]$sql = mysql_query(“UPDATE users SET Balance = Balance + “.$data[‘payment_amount’].”, WHERE id=’$_SESSION[user_id]’”); [/php]

i’m not sure if its an error with the code or the update is just in the wrong place

Try removing the comma from the query

Sponsor our Newsletter | Privacy Policy | Terms of Service