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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -