title: Display all ids in database
body: <p>I am new to php
  Following code only gives me the id of first user in database</p>
  
  <pre><code>$query="select* FROM users";
  $result= mysqli_query($con,$query);
  $results =mysqli_fetch_array($result);
  print_r($results[7]);
  </code></pre>
  
  <p>what if i want to display all ids? what should i do?</p>