I cannot figure out where the syntax error is in this line of code.
$cuQ = mysql_query("SELECT aQID
FROM approvedQuestions
WHERE staus = '1'");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Non-existent column
You wrote
staus, but was this meant to saystatus? If so, then you have written a token that is not a field name, and MySQL doesn’t know what to make of it.BTW…
I recommend using backticks (
`) to delimit field names.This resolves ambiguities in your SQL statements; were one of them a reserved name (none are) then in fact you’d have to do this: