Jump to content

syntax error?


ohdang888

Recommended Posts

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);

Link to comment
https://forums.phpfreaks.com/topic/93964-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.