Jump to content

Syntax Error


EchoFool

Recommended Posts

I have a syntax error but not sure how to correct it.

 

The idea is to change all rows with an id equal to or "less than" the value but i get this:

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

 

This is what i put:

 

$Change = mysql_query("UPDATE messages SET Staff='0' WHERE Staff='{$_SESSION['Current_User']}' AND Sender='$ID' AND MessageID=<'{$row['MessageID']}'")
Or die(mysql_error());

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