require('teacher_config.php'); $alertStr=""; $pass=$_POST['pass']; if ($pass){ $pass1=$_POST['pass1']; $string="update Sch_Teacher set pass='".$pass1."' where user='".$user."' and pass='".$pass."'"; $conn->query($string); echo ""; exit; }else{ $string="select pass from Sch_Teacher where user='".$user."'"; $result=$conn->query($string); $array=$conn->fetch_array($result); $pass=$array['pass']; } $op=$_GET['op']; ?>
|