Hello Craig,
Friday, November 30, 2001, Craig Sharp <[EMAIL PROTECTED]> wrote:
CS> I need to create a script that will use DBI to retreive
CS> information from Informix and then present the information in a
CS> table in html.
CS> The DBI part I have with no problem.
CS> I need to use perl to create a table in html that will expand or
CS> reduce as needed depending on how many rows are retreived from the
CS> database.
CS> In other words, I need the table to be dynamic and add or remove
CS> table rows for each data row retreived.
CS> Can anyone provide an example of how to do this or point me in the
CS> right direction.
something like this?
print '<table border=1>';
while ( @record = $sth->fetchrow_array() )
{
print '<TR>';
foreach my $r (@record)
{
print "<TD>$r</TD>";
}
print '</TR>';
}
print '</table>';
Best wishes,
Maxim mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]