Hey all, I've got an about page, and two HTML columns and I want to while loop the contents of my mysql query into BOTH columns, even though they are defined as two different divs. What I was thinking of doing is somehow dividing the amount of rows in the mysql database by 2, and then showing half and half, but I'm not sure how to do this (specifically doing the half and half mysql queries)
Could someone please either show me how I can halve a mysql database into two parts, or come up with a better solution to my problem? Thankyou :).
EDIT:
<?php $djs_all_db = mysql_query("SELECT * FROM djs")
or die(mysql_error());
while($djs_all = mysql_fetch_array( $djs_all_db )) {
echo "
<div class="row">
<!--It does it once here-->
<div class=\"column column-2\">
<img src=\"images/about/" . $djs['username'] . "-profile.png\" alt=\"Profile\" class=\"profile-image\"/>
<p class=\"float-left\"><strong>" . $djs['realname'] . "</strong></p>
<p class=\"float-right\"><a href=\"#\" title=\"\">" . $djs['twitterusername'] . "</a></p>
<div class=\"clear\"></div>
<p>" . $djs['biography'] . "</p>
</div>
<!--but now for column 2?-->
<div class=\"column column-3\">
<img src=\"images/about/profile.png\" alt=\"Profile\" class=\"profile-image\"/>
<p class=\"float-left\"><strong>Edward Smith, Developer</strong></p>
<p class=\"float-right\"><a href=\"#\" title=\"\">Twitter</a></p>
<div class=\"clear\"></div>
<p>In tellus arcu, luctus sed vulputate ut, dictum sed nisi. Suspendisse commodo, enim sed mollis cursus, urna quam laoreet velit, vel sollicitudin arcu augue at quam.</p>
</div>
</div> <!--/.row-->" ?>