GA PunkFreak
05-26-2006, 03:41 PM
Hello,
I'm having trouble running the following query:
$editquery = "UPDATE `nyk_players` SET firstname = '$firstname', lastname = '$lastname', status = '$status', number = '$number', height = '$height',
weight = '$weight', dateofbirth = '$dateofbirth', yearspro = '$yearspro', yearsknicks = '$yearsknicks', position1 = '$position1', position2 = '$position2', from = '$from',
strengths = '$strengths', weaknesses = '$weaknesses', bio = '$bio', acquisition = '$acquisition', highlights = '$highlights',
knicknames = '$knicknames', headphotourl = '$headphotourl', actionphotourl = '$actionphotourl' WHERE id = '$id'";
$editresult = mysql_query($editquery) or die ("Error in query: $editquery. " . mysql_error());
I get the following error:
Error in query .......
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from = 'Arizona', strengths = 'Great mid-range jumper; Good shotblocker; Athleti' at line 3
I don't see anything wrong at that part in the code. What could be wrong?
Thanks,
-Phil
I'm having trouble running the following query:
$editquery = "UPDATE `nyk_players` SET firstname = '$firstname', lastname = '$lastname', status = '$status', number = '$number', height = '$height',
weight = '$weight', dateofbirth = '$dateofbirth', yearspro = '$yearspro', yearsknicks = '$yearsknicks', position1 = '$position1', position2 = '$position2', from = '$from',
strengths = '$strengths', weaknesses = '$weaknesses', bio = '$bio', acquisition = '$acquisition', highlights = '$highlights',
knicknames = '$knicknames', headphotourl = '$headphotourl', actionphotourl = '$actionphotourl' WHERE id = '$id'";
$editresult = mysql_query($editquery) or die ("Error in query: $editquery. " . mysql_error());
I get the following error:
Error in query .......
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from = 'Arizona', strengths = 'Great mid-range jumper; Good shotblocker; Athleti' at line 3
I don't see anything wrong at that part in the code. What could be wrong?
Thanks,
-Phil
