$grade=$_POST["grade"];
$stream=$_POST["stream"];
$a=='A';
$query="delete * from class where grade_id='$grade' and stream='$stream' and class_name='$a'";
$result=mysql_query($query);
if($stream==null)(
$query1="insert into class values(null,'$a','$grade','null')";
$result=mysql_query($query1);
}else(
$query1="insert into class values(null,'$a','$grade','$stream')";
$result=mysql_query($query1);
)
in this code runs .the code which color in red is occur error . please someone can tell me the reason for that?