Sorry, maybe I should clarify that a litte.  If you have more than one column, then 
iterate the loop like so...

Output the <TABLE> tag.
Use a while loop on your DBI return into a fetchrow_array
        Output the <tr> and <td> tags
        Output loop[0]
        Output the </td> <td>
        Output loop[1]
        Output the </td> <td>
        Output loop[2]
        .
        .
        .
        Ouptut the </td></tr> tags
Close the loop
Output the </TABLE> tag.


-----Original Message-----
From: Fay Jason-W13246 [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 30, 2001 9:10 AM
To: Craig Sharp; [EMAIL PROTECTED]
Subject: RE: [Perl-unix-users] perl and html tables?

Just do it like this.

Output your <TABLE> tag.
Use a while loop on your DBI return into a fetchrow_array
        Output the <tr> and <td> tags
        Output the loop iteration array values of the DBI return
        Output the </tr> and </td> tags
Close the loop
Output the </TABLE> tag.

-----Original Message-----
From: Craig Sharp [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 30, 2001 7:00 AM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] perl and html tables?

I need to create a script that will use DBI to retreive information from Informix and 
then present the information in a table in html.





The DBI part I have with no problem.  





I need to use perl to create a table in html that will expand or reduce as needed 
depending on how many rows are retreived from the database.


In other words, I need the table to be dynamic and add or remove table rows for each 
data row retreived.





Can anyone provide an example of how to do this or point me in the right direction.





Thanks,





Craig A. Sharp


Unix Systems Administrator


DNS Administrator


Roush Industries


Office: 734-779-7282


Cell: 734-231-6769


Fax: 734-779-7807


[EMAIL PROTECTED]


====================================================


I have not lost my mind, it's backed up on tape somewhere!


====================================================





_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to