MDCode Posted December 7, 2012 Share Posted December 7, 2012 I've been trying to debug this code for an hour now. Returns the following 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 'group,email,verified,redirect) VALUES ( 'Bob', 'Bobly', 'Admin', '6efe0def62d76' at line 1 <?php $sql = "INSERT INTO `users` (firstname,lastname,username,password,group,email,verified,redirect) VALUES ( '$first', '$last', '$user', '$pass', 'Member', '$email', '$verified', '$redirect')"; ?> Anyone see what's wrong? Quote Link to comment https://forums.phpfreaks.com/topic/271698-annoying-error/ Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2012 Share Posted December 7, 2012 http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html Quote Link to comment https://forums.phpfreaks.com/topic/271698-annoying-error/#findComment-1398027 Share on other sites More sharing options...
MDCode Posted December 7, 2012 Author Share Posted December 7, 2012 Ah...yes...Err tyvm. problem solved lol Quote Link to comment https://forums.phpfreaks.com/topic/271698-annoying-error/#findComment-1398029 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.