Need help dividing while loop into two columns...
Posted: Fri Oct 24, 2008 5:07 pm
Hi everyone. I am in desperate, desperate need of help here. I'm trying to split my while loop into two columns. How do you do that?
Here is my exact code:
---
echo '
<table align="left" cellspacing="0" cellpadding="0" id="wording">
';
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "
<tr>
<td><img src=\"show_image.php?image={$row['thumbnail']}\"></img></td>
<td width=\"20px\"></td>
</tr>
";
}
mysql_free_result ($result);
echo '</table>';
---
Thank so much...really need help...
Here is my exact code:
---
echo '
<table align="left" cellspacing="0" cellpadding="0" id="wording">
';
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "
<tr>
<td><img src=\"show_image.php?image={$row['thumbnail']}\"></img></td>
<td width=\"20px\"></td>
</tr>
";
}
mysql_free_result ($result);
echo '</table>';
---
Thank so much...really need help...