elseif($do == "Update"){
if($_SERVER["REQUEST_METHOD"] == "POST"){
$id = $_POST['std'];
$name = $_POST['name'];
$Email = $_POST['Email'];
$password = $_POST['password'];
$stmt2 = $con->prepare("UPDATE student SET name = ?, Email = ?password=? WHERE id =?");
$stmt2->execute(array($name,$Email,$password,$id));
header("location:Index.php");
}
}