Hi i get the following error when running the below script, As far as i can tell it is the AND statement that is causing the error as without it i dont get any error but im not sure what is wrong with it.
error - mysql_fetch_array(): supplied argument is not a valid MySQL result resource
Script -
$search = $GET["subject_id"];
$keysearch = $GET["keystage_id"];
$stat = mysql_query("SELECT *
FROM tbl_csb
WHERE tbl_csb.subject=".$search.";
AND tbl.csb.keystage=".$keysearch."");
echo "<table width='500' border='0' align='center' cellspacing='0'>";
while($row = mysql_fetch_array($stat))