<SCRIPT language="javascript">
function abc(){
<?php
$search1=mysql_query("select Lab_credit_hr from courses where Course_Number='$_GET[course]'");
if (mysql_num_rows($search1) == 0)
{
?>
document.fm.lab.disabled=true;
<?php
}?>
</SCRIPT>
i want to check mysql table row that if column "lab credit hour"= 0 then lab text field disabled help me this code?
and this javascript function call in "course" option drop down menu