Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/fellowes/public_html/createaccount.php on line 108
include("conf.inc.php");
$tbl_name="tbl_courses";
$sql=mysql_query("SELECT * FROM $tbl_name WHERE crs_semister=1 AND crs_period='A'") or die(mysql_error());
$result=mysql_num_rows($sql);
<?php while($rows=mysql_fetch_array($result)) { ?>
<option><?php echo $rows['crs_code']; ?>//Line 108</option>
<?php } ?>