I am working on trying to set up a script that searches for images and displays the results in a 2x2 table.
The code I am working with now works in Firefox, but is crude at best. What would be the best way to do this:
<?php
$planimg = mysql_query("SELECT * FROM floorplans WHERE UnitImg LIKE '%.%' AND PropID = $PropId");
while ($row8 = mysql_fetch_object($planimg)) {
?>
<table width="370" border="0" cellpadding="0" cellspacing="0" align="left" valign="top">
<tr>
<td width="370" align="center" valign="top">
<img src="images/planpics/<?php echo ($row8->UnitImg); ?>">
</td>
</tr>
<tr>
<td width="370" align="center" valign="top">
<?php echo ($row8->Size); ?>
</td>
</tr>
</table>
<?php
};
?>
Basically I want two results side by side down the page for as many that exist.