Jump to content

[SOLVED] SQL error.. should be an easy fix


clown[NOR]

Recommended Posts

I just can't seem to find what's wrong here... can anyone see what i've done wrong?

 

$query = "SELECT * FROM `news_messages` WHERE to ='".$to."'";

 

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 ='[email protected]'' at line 1

 

Thanks In Advance

- Clown

Link to comment
https://forums.phpfreaks.com/topic/51488-solved-sql-error-should-be-an-easy-fix/
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.