php - syntax error, unexpected 'order' (T_STRING) -
this question has answer here:
- php parse/syntax errors; , how solve them? 11 answers
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
Post a Comment