Please, I will like anyone who can help me on this query
$page_set=mysql_query("SELECT * FROM pages WHERE subject_id = {$subject}", $connection);
it resulted in the following error when viewed on the browser
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
After putting a single quote around '{$subject}' i.e
$page_set=mysql_query("SELECT * FROM pages WHERE subject_id = '{$subject}'", $connection);
the error disappears but no value was displayed
Please what can i do to this query . Thank you