Hi,
Ok someone at work created the following that allows you to have two images on one line at a time...now, what I need is four on one line...hope that makes sense.
Here is the code:
<?
$RCount = 1;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
while($row = mysql_fetch_array($result))
{
if ($RCount == 1)
{
echo "<tr align=\"center\">";
}
?>
<td width="25%"><? echo $row['fld_image']; ?></td>
<?
switch ($RCount) {
Case "1":
$RCount = 2;
Break;
Case "2":
$RCount = 1;
echo " </tr>";
Break;
}
}
echo "</table>"; ?>
Any ideas? I tried messing around with the $RCount = 2 and putting a four, this does work but displays some funny results...
Cheers,
Chris