Hi everyone,
The following code is the most simple I could get to make me understand how to work with 'mysqli_fetch_array'.
That code produces the following error message:
Can anyone advise me how to make that code work? What "MYSQLI_NUM" stands for?
Thanks
The following code is the most simple I could get to make me understand how to work with 'mysqli_fetch_array'.
Code:
<?php
require ('mysqli_connect.php');
$sql="SELECT 'fname', 'email', 'pass' FROM 'list'";
$row=mysqli_fetch_array($result,MYSQLI_NUM);
while ($row !== NULL)
{
echo $row[0] . '. ' . $row[1] . ' ' . $row[2];
echo '<br />';
}
mysqli_close($dbcon);
?>
Can anyone advise me how to make that code work? What "MYSQLI_NUM" stands for?
Thanks