title: Displaying SQL data in 3 divs per line
body: <p>I am trying to create a display loop of my sql data and have it display within a div and a max of 3 divs per line. </p>
  
  <p>It works for the first line and then the divs break out and starts showing up on left of screen outside the main container.</p>
  
  <p>Here is the link to see it live : <a href="http://avmor.com/avmor2014/media_videos_facility.php" rel="nofollow">http://avmor.com/avmor2014/media_videos_facility.php</a></p>
  
  <p>Here is my code :</p>
  
  <pre><code>&lt;?php
  
  $i=0;
  while ($i &lt; $num) {
  $id=mysql_result($result,$i,"id");
  $title=mysql_result($result,$i,"title_en");
  $desc=mysql_result($result,$i,"desc_en");
  $link=mysql_result($result,$i,"link_en");
  
  ?&gt;
  
  &lt;!-- DIV box here --&gt;
  
  &lt;?php
  $i++;
   }
  ?&gt;   
  </code></pre>
  
  <p>How can i create a display the loop of mysql data ?</p>