MySQL PHP Syntax Error -
i cannot figure out syntax error in line of code.
$cuq = mysql_query("select aqid approvedquestions staus = '1'");
non-existent column
you wrote staus, meant status? if so, have written token not field name, , mysql doesn't know make of it.
btw...
i recommend using backticks (`) delimit field names.
this resolves ambiguities in sql statements; 1 of them reserved name (none are) in fact you'd have this:
select `aqid` `approvedquestions` `status` = '1';
Comments
Post a Comment