0
No, I understand why I’m making that mistake, 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 Pupil Alteraraluno.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");
}
?>
which error displayed?
– RFL
Warning: mysqli_fetch_row() expects Parameter 1 to be mysqli_result, Object Given in C: xampp htdocs project2 Pupil Alteraraluno.php on line 17
– Paulo