theoneweasel77
Programmer
assuming all variables are set and $db is a valid link resource and mysql_error() returns nothing and the table exists with the specified column names, what is wrong with the following statement?
and I've tried this
The data is never entered in the database.
Code:
$piece_update = mysql_query("UPDATE `moves` SET `$move_from` = '$moves[$foo]', `$move_to` = '$moves[$foo2]' WHERE `ID` = '$ID' && `color` = '$color'", $db);
Code:
$piece_update = mysql_query("UPDATE `moves` SET '$move_from' = '$moves[$foo]', '$move_to' = '$moves[$foo2]' WHERE `ID` = '$ID' && `color` = '$color'", $db);