Re: Writing Dynamic tables

2001-07-03 Thread darren chamberlain
James Kelty <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > I have connected to a MySQL database, and I am creating a table > based on the row fetched which is not a problem. But! How can I > write a table when multiple rows are fetched without writing a > new table for each row

Re: Writing Dynamic tables

2001-07-03 Thread Vinicius Jose Latorre
One way is: print $cgi->start_table({-border=>'1'}); while(my @row = $query->fetchrow_array()) { print $cgi->Tr({-align=>LEFT, -valign=>MIDDLE}, $cgi->td({-bgcolor=>green,-width=>'150'}, \@row)); } print $cgi->end_table; > Mailing-List: contact [EMAIL PROTECTED]; run

Writing Dynamic tables

2001-07-03 Thread James Kelty
Ok, I have connected to a MySQL database, and I am creating a table based on the row fetched which is not a problem. But! How can I write a table when multiple rows are fetched without writing a new table for each row? Here is the code I am using at the moment. I had it wrapped with a while state