Thanks,
I managed to get it with this bit of code in case it helps anyone else in the 
future:
$tdcount = 1;
$numtd = 3; // number of cells per row
echo "<table>";
while($row = mysql_fetch_array($result)) {
if ($tdcount == 1) echo "<tr>";
echo "<td>some stuff: $tdcount</td>"; // display as you like
if ($tdcount == $numtd) {
echo "</tr>";
$tdcount = 1;
} else {
$tdcount++;
}
}

// time to close table

if ($tdcount!= 1) {

while ($tdcount <= $numtd) {
echo "<td>&nbsp;</td>";
$tdcount++;
}
echo "</tr>";
}
echo "</table>";

On Thursday 18 August 2005 5:03 pm, Nestor Florez wrote:
> You could send this to type of question to the san diego PHP user group
> www.sdphp.net
>
> :-)
>


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to