php - syntax error, unexpected 'order' (T_STRING) -


this question has answer here:

i put code in php file , gives me error syntax error, unexpected 'order' (t_string)

what doing wrong?

$sqldelreq="delete `requests` tablecode = 1 , type = "order"";         $result2=mysql_query($sqldelreq);             if($result2)             {                 header("location: http://localhost/mjjapp/index.php");             } 

i think query should be:

"delete `requests` tablecode = 1 , type = 'order'"; 

please note single quotes around order.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -