i want to give grade to schools according to their student pass percentage
just lile this kindly help me to find easiest way to do this
just lile this kindly help me to find easiest way to do this
Code:
$sql1 = mysql_query("select count(studentid) as totstudent from result where schoolcode ='".$_GET['schoolcode']."'" ); if(!$sql1) { echo mysql_error();} $sql3 = mysql_query("select count(pass_fail) as totpasstudent from result where schoolcode ='".$_GET['schoolcode']."' and pass_fail='p'" ); if(!$sql3) { echo mysql_error();} $paspercentage=(totpasstudent/totstudent)*100
Comment