formating output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux