Re: [PHP] formating output

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

RE: [PHP] formating output

2004-12-17 Thread Jay Blanchard
[snip] this structure prints out a table with a new row for each item <$results[1] " ; } ?> 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 data printed 4 times then a new row started and

[PHP] formating output

2004-12-17 Thread Larry L
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 <$results[1] " ; } ?> what I want to do is print out a table 4 columns wide and however many rows high needed

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 "{$headline[0]}Latest news blah blah \n"; echo "{$headline[1]}Latest news blah blah \n"; echo "{$headline[2]}Latest news blah blah \n";

[PHP] formating output

2001-02-28 Thread george
I am developing a site which will have a web based admin panel, just now you can alter the scrolling headlines through the panel. But I want to be able to let the user modify, delete and create new headline, this isnt proble but i dong know how to format the output. What i want is for it to