The trick is that I want to have 4 records per row. I have tried with div's but the css seems to work different with every damn browser. So then I figured the only way out was tables. and I got to this conclusion:
<table width="530" border="0" cellspacing="0" cellpadding="0" >
<?php
$i = 1;
while($row = mysql_fetch_array($result))
{
if ( $i==1 ) {
echo "<tr><td>" . $row['Test'] . "</td>";
$i++;
}
else if ( $i == 2 ) {
echo "<td>" . $row['Test'] . "</td>";
$i++;
}
else if ( $i == 3 ) {
echo "<td>" . $row['Test'] . "</td>";
$i++;
}
else if ($i == 4 ) {
echo "<td>" . $row['Test'] . "</td></tr>";
$i = 1;
}
else {}
}
mysql_close($con);
?>
</table>
This works until it's less than 3 records left to print or just one record to print. So thats where im stuck.
Thanks
