prepare("delete from students where regno = '$c'") ; //$ex1 = mysql_query("delete from parents where regno = '$c'") ; if($ex->execute()) header("location: edstrec.php") ; ?>