Jump to content

error


searls03

Recommended Posts

here is code:

   $query = "SELECT * FROM messages WHERE to ='$name'";

and here is the error I am getting:

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 'to ='my_name'' at line 1

 

 

Does anyone know what is happening?I think it has something to do with the where statement.

Link to comment
https://forums.phpfreaks.com/topic/234365-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.