Mysql
 sql >> Datenbank >  >> RDS >> Mysql

mysql_num_rows() erwartet, dass Parameter 1 eine Ressource ist, ein boolescher Wert, der in C:\wamp\www angegeben ist

$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']."'");