These are all good suggests, but I have yet another way.
I am not sure you said that you wanted to put the db table into an html table. Assuming that you simply wanted to get the data, extract in whole and then put it into an arbitrary html form or any form for that matter, you might try using fetchrow_hashref which I like because it allows you to preserve the column names as keys for easy access.
This means that if the column names are unknown or you change tables you will be able to reuse your script and have access to the column names.I then use Template Toolkit as a template processor for displaying that data.
(I do like the idea of doing it one fell swoop so I will look into DBIx::XHTML.)
Edited by footpad, ~Wed Jan 2 07:11:39 2002 (GMT)
In reply to Re: How can I display an entire MySQL table in Perl?
by jonjacobmoon
in thread How can I display an entire MySQL table in Perl?
by bladx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |