Jump to content

MYSQL Error :/


xyn

Recommended Posts

Hey Guys.
I have a small problem with my SQL query, the error is:
[color=red]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 'inf_accept='1' AND inf_block='n' AND inf_friend='y'' at line 1[/color]

The code / sql line is:
[color=red]$sql = mysql_query("SELECT * FROM pm_buddy WHERE user_name='{$_SESSION['username']['usr_user']}' inf_accept='2' AND inf_block='y' AND inf_friend='n'")or die('ERROR:'.mysql_error().'');[/color]

does anyone know any problems? I checked few times,
tried renaming my syntax :/ nothings changed.
Link to comment
Share on other sites

Guest
This topic is now 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.