title: how to show each data from table
body: <p>I want to show the table in my PHP page, my code is:</p>
  
  <pre><code>$query = "SELECT username FROM users_registration"; 
  $result = pg_query($conn,$query);
  
  $i=0;
  while($row = pg_fetch_array($result))
  {
      $vm_array[$row[0]]=$row[0];
      $i++;
  }
  </code></pre>
  
  <p><code>username</code> values in table are:</p>
  
  <pre> David
   amitra
   a
   David
   emilio
   Atul
   john
   rohit
   john</pre>
  
  <p>But my page shows only:</p>
  
  <pre> David
   amitra
   a
   emilio
   Atul
   john
   rohit</pre>
  
  <p>How to show all the missing data e.g. <code>david</code>, <code>john</code>?</p>