tebrown Posted May 17, 2012 Share Posted May 17, 2012 Hey Guys, I've come across this error and yes i have tried to google it but haven't come across any help. Any suggestions? Error: 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 'As WHERE id='34'' at line 1 <?php $player_id=$_GET['playerid']; $toplayfor=$_GET['team']; $move=mysql_query("UPDATE users SET team=$toplayfor WHERE id='$player_id'") or die(mysql_error()); if($move) { header('Location: players.php'); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/262659-sql-error/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.