title: How to echo 2 rows of results to table with 2 columns
body: <p>I'm using the below code to echo results from my table. However, the results produces new row upon each looping. But I want the first row data from database to echo in first column then move on to next column for next row of data. Simply said, refer to the picture here:
  <a href="http://i.stack.imgur.com/vvsc4.png" rel="nofollow">Desired Outcome</a></p>
  
  <p>What I want:</p>
  
  <pre><code>$result = mysqli_query($conn, "SELECT * FROM contact WHERE category='other'");
  if ($result-&gt;num_rows &gt; 0)
  {
      while ($row = $result-&gt;fetch_object())
      {
          echo "&lt;tr&gt;";
          echo "&lt;td width=500&gt;&lt;b&gt;". $row-&gt;name . "&lt;/b&gt;&lt;br/&gt;Address: ". $row-&gt;address . "&lt;br/&gt;Phone no: ". $row-&gt;phoneno . "&lt;br/&gt;Fax No:". $row-&gt;faxno ."&lt;br/&gt;Email: ". $row-&gt;email . "&lt;br/&gt;Website: ". $row-&gt;website ."&lt;/td&gt;";
          //echo "&lt;/tr&gt;";
          //echo "&lt;tr&gt;";
          //fetch next object here
          echo "&lt;td  width=500&gt;&lt;b&gt;". $row-&gt;name . "&lt;/b&gt;&lt;br/&gt;Address: ". $row-&gt;address . "&lt;br/&gt;Phone no: ". $row-&gt;phoneno . "&lt;br/&gt;Fax No:". $row-&gt;faxno ."&lt;br/&gt;Email: ". $row-&gt;email . "&lt;br/&gt;Website: ". $row-&gt;website ."&lt;/td&gt;";
          echo "&lt;/tr&gt;";
      }
      echo "&lt;/table&gt;";
  }
  </code></pre>