ohdang888 Posted March 2, 2008 Share Posted March 2, 2008 the error i am getting is this: but i can't it out!!!::: 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 `users` WHERE `id`= '1'' at line 1 i think the problem may be how the one is like this '1" (different quotes) heres the code its refering to: $result = mysql_query("SELECT `first_name`,`last_name`,`username`, `email`, FROM `users` WHERE `id`= '{$id}' ") or die(mysql_error()); $user_data = mysql_fetch_array($result); Quote Link to comment Share on other sites More sharing options...
trq Posted March 2, 2008 Share Posted March 2, 2008 Remove the , just prior to FROM Quote Link to comment Share on other sites More sharing options...
phpSensei Posted March 2, 2008 Share Posted March 2, 2008 Remove ',' after email edit: thorpe beat me to it Quote Link to comment 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.