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


matthewamzn - 11:45 pm on Sep 19, 2008 (gmt 0)


I want to make a table that has three columns. In my query I'm pulling out all the images and placing them each inside a table cell. How can I tell it to start a new row after the third image has been pulled.

<table>
<?php
while ($row = mysql_fetch_array($result)) {
echo "<td><an image></td>";
}
?>
</table>


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