$query = "SELECT * FROM `reportlog` WHERE `entity` = '$ent'";
mysqli_query($db, $query) or die('Error querying database.');
This code does not show the first entry when there is only one entry and then shows the fist but not the second, then 1 2 but not 3 and so on. Basically it dose not ever show the most recent entry. I have no idea why. Please help me
$result = mysqli_query($db, $query);
$row = mysqli_fetch_array($result);
echo "user \t date \t note
";
while ($row = mysqli_fetch_array($result)) {
echo $row['user'] . " \t " . $row['date'] . " \t " . $row['note']. "
";
}