title: php iterate through mysql dosent show most recent entry
body: <pre><code>                $query = "SELECT * FROM `reportlog` WHERE `entity` = '$ent'";
              mysqli_query($db, $query) or die('Error querying database.');
  </code></pre>
  
  <p>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</p>
  
  <pre><code>              $result = mysqli_query($db, $query);
              $row = mysqli_fetch_array($result);
  
         echo "user \t date \t                   note \n";
               while ($row = mysqli_fetch_array($result)) {
               echo $row['user'] . " \t " . $row['date'] . " \t " .  $row['note']. " \n";
              }
  </code></pre>