RE: [PHP] formating output

2004-12-17 Thread Jay Blanchard
[snip] this structure prints out a table with a new row for each item table ? While ( $results = mysql_fetch_array($pointer)) { print trtd $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

Re: [PHP] formating output

2004-12-17 Thread Tatang Widyanto
print table\n; print tr\n; $counter = 0; while ($result = mysql_fetch_array($pointer)) { $counter++; if ($counter % 4 === 0) { print td.$result[1]./td\n; print /tr\n; print tr\n; } else { print td.$result[1]./td\n; } } // add blank cells if number of

Re: [PHP] formating output

2001-02-28 Thread Chris Lee
some code snipits would help, but lets see what we can do. I like arrays, they work for me, there are lots of ways todo things, arrays will help. echo "b{$headline[0]}/ba href='{$newslink[0]}'Latest news/a blah blahbr \n"; echo "b{$headline[1]}/ba href='{$newslink[1]}'Latest news/a blah