title: PHP: MYSQL QUERY Ordery By
body: <p>Image Table
  <a href="https://i.stack.imgur.com/zP5kr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zP5kr.png" alt="enter image description here"></a></p>
  
  <p>Hello i have a table <code>comments</code> and i need to take the last three comments but another way like this:</p>
  
  <pre><code>8
  9
  10
  </code></pre>
  
  <p>My code show this:</p>
  
  <pre><code>10
  9
  8
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>$sql_query = $connection-&gt;query("SELECT * FROM comments WHERE `post_id` = '38' ORDER BY `id` DESC LIMIT 3");
  
  while ($ff = $sql_query-&gt;fetch_array(MYSQLI_ASSOC)) {
      echo $ff["text"]. "&lt;/br&gt;";
  }
  </code></pre>
  
  <p>Thanks in advance !</p>