title: Making the loop start from latest id
body: <p>How can I make the loop start from latest id to first one?</p>
  
  <pre><code>    include 'config.php';
  
      $con-&gt;set_charset('utf8');
      $sql = "SELECT * FROM tablename";
      $names = mysqli_query($con,$sql);
      while($row = mysqli_fetch_array ($names)){
  
      //here will make loop start from first id
       }
  </code></pre>