I'm trying to use a variable in the update of a field.
The Following won't work
$points = 5;
$query2 = "UPDATE `Cust` SET points = points + $points WHERE name = '$name'";
$result = mysql_query($query2);
What am I doing wrong with the above query?
Yet this one does work
$query2 = "UPDATE `$tablecust` SET points = points + 5 WHERE name = '$name'";
$result = mysql_query($query2);
Thank you