title: WordPress $wpdb->get_results show all the rows in a table
body: <p>In WordPress, I have a table called <code>wp_users</code>
  and I want to show all of them in a custom html table. So, my query goes like this </p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
        &lt;td&gt;First Name&lt;/td&gt;
        &lt;td&gt;Last Name&lt;/td&gt;
        &lt;td&gt; Email &lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php
      global $wpdb;
      $rows = $wpdb-&gt;get_results( "SELECT * FROM wp_users");
      foreach ( $rows as $row ) ?&gt;
        &lt;tr&gt;
          &lt;td&gt;echo $row-&gt;first_name;&lt;/td&gt;
          &lt;td&gt;echo $row-&gt;first_name;&lt;/td&gt;
          &lt;td&gt; echo $row-&gt;first_name;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;?php 
      } 
      ?&gt;
  </code></pre>
  
  <p>This one is giving result for all the first_name inside the first table like this</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;Test 1Test 2&lt;/td&gt;
    &lt;td&gt;Test 12Test 2&lt;/td&gt;
    &lt;td&gt; test@test.comtest2@test.com&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>but I want the result be like this          </p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;First Name&lt;/td&gt;
      &lt;td&gt;Last Name&lt;/td&gt;
      &lt;td&gt; Email &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Test 1&lt;/td&gt;
      &lt;td&gt;Test 12&lt;/td&gt;
      &lt;td&gt; test@test.com&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Test 2&lt;/td&gt;
      &lt;td&gt;Test 2&lt;/td&gt;
      &lt;td&gt; test2@test.com&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>So, Can someone tell me how to do this?
  Any help and suggestions wll be really appreciable. Thanks</p>