Code:
if(isset($_POST['onsub'])){
for($i=0;$i<4;$i++){
$t=$_POST["a$i"];
echo "hello"."a$i";
switch ($t){
case "good":
$q2 = "update teacher set good=good+1 where teacher_name='$tname'";
$r = mysql_query($q2, $con);
if (!$r)
echo "error";
continue;
case "average":
$q2 = "update teacher set average=average+1 where teacher_name='$tname' ";
mysql_query($q2, $con);
continue;
case "excellent":
$q2 = "update teacher set excellent=excellent+1 where teacher_id='$tname'";
mysql_query($q2, $con);
continue;
default:
echo "please select one";
}
}
}
plz help me thnk u.....