in reply to 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)

Thanks for the tip, I just upgraded from 1.15 to 1.201 and found this broken. Now I'm worried as I have to make sure nobody upgrades DBI and causes all my scripts to break.

gav^

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

Replies are listed 'Best First'.
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
    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
      This one works much better. Thanks alot for sharing it with me. I really need it