I'd suggest you to use Embperl for including Perl code into HTML page. It's very useful, simple in use and power tool. This is just example how to build HTML table and fill it data from database:
[- $dbh = DBI->connect($DSN); $sth = $dbh->prepare("SELECT * FROM blash "); $sth->execute; $head = $sth->{NAME}; $data = $sth->fetchall_arrayref; -] <table> <tr> <th>[+ $head->[$col] +]</th> </tr> <tr> <td>[+ $data->[$row][$col] +]</td> </tr> </table>
For more detailes, please see Embperl documentation
Hope it helped!
-- Michael Stepanov
In reply to Re: html tables
by nite_man
in thread html tables
by jwlarson3rd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |