formating output

From: Date: Fri, 17 Dec 2004 17:42:02 +0000
Subject: formating output
Groups: php.general 
Request: Send a blank email to php-general+get-204616@lists.php.net to get a copy of this message
I'm sure this is easy and I'll feel silly when I see how it's done, but, my mnd is a blank, this structure prints out a table with a new row for each item <table > <? While ( $results = mysql_fetch_array($pointer)) { print "<tr><td ><$results[1] </td></tr>" ; } ?> </table> what I want to do is print out a table 4 columns wide and however many rows high needed to run through the data HOW do I loop through the array and get <td>data</td> printed 4 times then a new row started and then 4 more <td> cells printed, etc thank you in advance

« previous php.general (#204616) next »