title: How to create divs / tiles from an sql table
body: <p>apologies if this sounds noobish, not a lot of experience in web development flash aside, and trying to find the best solution for my project.</p>
  
  <p>I have an sql table from which I can echo data like this in my php file: </p>
  
  <pre><code>echo "&lt;table border='1'&gt;
  &lt;tr&gt;
  &lt;th&gt;username&lt;/th&gt;
  &lt;th&gt;objectname&lt;/th&gt;
  &lt;th&gt;url&lt;/th&gt;
  &lt;th&gt;description&lt;/th&gt;
  &lt;th&gt;picture&lt;/th&gt;
  &lt;th&gt;price&lt;/th&gt;
  &lt;th&gt;location&lt;/th&gt;
  &lt;th&gt;category&lt;/th&gt;
  &lt;th&gt;priority&lt;/th&gt;
  &lt;th&gt;event&lt;/th&gt;
  &lt;th&gt;tags&lt;/th&gt;
  &lt;/tr&gt;";
  
  while($row = mysqli_fetch_array($result))
   {
    echo "&lt;tr&gt;";
    echo "&lt;td&gt;" . $row['username'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['objectname'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['url'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['description'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['picture'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['price'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['location'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['category'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['priority'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['event'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['tags'] . "&lt;/td&gt;";
    echo "&lt;/tr&gt;";
    }
  echo "&lt;/table&gt;";
  </code></pre>
  
  <p>This pulls the whole SQL table for that user. I want to echo the content of each row separately in a separate div so that I can vizualize / echo it using tiles from the isotope jquery plug in. <a href="http://isotope.metafizzy.co/" rel="nofollow">http://isotope.metafizzy.co/</a></p>
  
  <p>What would be the best way to dynamically generate a number of divs based on the number of rows, and fill them in with each row data?</p>
  
  <p>Again, sorry if this is too broad...</p>
  
  <p>Thanks!</p>