Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Start a new table row in a loop


Anyango - 5:22 am on Sep 20, 2008 (gmt 0)



<table>
<?php
$nextColumn=1;
echo "<tr>";
while ($row = mysql_fetch_array($result))
{
echo "<td><an image></td>";
$nextColumn++;
if($nextColumn>3)
{
echo "<tr>";
$nextColumn=1;
}
}
?>
</table>

[edited by: Anyango at 5:24 am (utc) on Sep. 20, 2008]


Thread source:: http://www.webmasterworld.com/php/3748316.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com