Hi all,
I have been trying to get this to work for hours and I am so close.
I wnat to display data in multiple columns left to right. The code i have so far is half doing that but the first column is displaying two records but the following columns are displaying one, which is what I want.
The code I am using is:
$Limit = 16;
$Count = 0;
echo "<table border='0'>";
while ($row_RoomView = mysql_fetch_assoc($RoomView)) {
$RoomNo = $row_RoomView['RoomNo'];
if($Count < $Limit) {
if($Count == 0) {
echo "<tr>";
}
echo "<td class=\"roomviewgreen\">$RoomNo</td>";
} else {
$Count = 0;
echo "</tr><tr><td class=\"roomviewgreen\">$RoomNo</td";
}
$Count++;
}
echo "</tr></table>";
Can anyone see why the first column is displaying two records.
Many thanks in advance for any help you can provide.