$s=mysql_query("select semester from faculty_advisor where emp_id = 'macs410' ");
echo $s;
$subject=mysql_query("select * from subject_list where semester=$s");
Should be
$s=mysql_query("select semester from faculty_advisor where emp_id = 'macs410' ");
$row = mysql_fetch_assoc($s);
$subject=mysql_query("select * from subject_list where semester="".$row["semester']."'");
0
solved mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www [closed]