I want to output results from a MYSQL query into a HTML table using PHP. I am very new to this field and I read all the related questions but cant figure it out. I am sure the error is just a minor one.
Here is my PHP
$mysqli = new mysqli($db);
if($mysqli -> connect_error)
{
die("Connect Error (".$mysqli -> connect_errno.") ".$mysqli -> connect_error);
}
$result = $mysqli->query("SELECT * FROM 'Users'");
$row = mysqli_fetch_row($result);
$mysqli->close();
And here is the snippet of the HTML table
<tr>
<td><?php echo "$row[1]"; ?></td>
<td>9</td>
<td>48</td>
</tr>