Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: using CGI, DBI and HTML::Template (a mini tutorial with example code)

by blue_dragon99uk (Initiate)
on Oct 15, 2002 at 03:12 UTC ( [id://205267] : note . print w/replies, xml ) Need Help??


in reply to Re: Re: using CGI, DBI and HTML::Template (a mini tutorial with example code)
in thread using CGI, DBI and HTML::Template (a mini tutorial with example code)

Good Tutorial, though l have to admit l did get caught out my the selectall_hashref and after searching this site, l found an easy solution to it:
my $table_data = $dbh->prepare($companyquery); $table_data->execute; my $arrayref = $table_data->fetchall_arrayref({}); $template->param(ROWS => $arrayref);
Hope this helps
  • Comment on Re: Re: Re: using CGI, DBI and HTML::Template (a mini tutorial with example code)
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: using CGI, DBI and HTML::Template (a mini tutorial with example code)
by Anonymous Monk on Feb 08, 2004 at 09:08 UTC
    This one works much better. Thanks alot for sharing it with me. I really need it