No, I'm wondering why I get this error, since I just want to do a simple update, and I have the necessary parameter in fetch
ERROR: Warning: mysqli_fetch_row () expects parameter 1 to be mysqli_result, object given in C: \ xampp \ htdocs \ project2 \ Student \ ChangeAlumni.php on line 17
<?php
if (!isset($_SESSION)){session_start();}
$conn=mysqli_connect("localhost","root","","proj");
echo $email=$_POST['email'];
$inst0="Select Email from utilizador ";
$result0=mysqli_query($conn,$inst0);
echo $numlinhas1=mysqli_num_rows($result0);
//echo $numlinhas1;
//echo var_dump($_POST);
if ($numlinhas1 > 0)
{
$inst3="Update utilizador set Email = '".$email."'";
echo "xxx";
$result0=mysqli_query($conn,$inst3);
$result1=mysqli_fetch_row($conn);
$_SESSION['mensagem'] ="Dado atualizado";
//header("Location:IndexAluno.php");
}
?>