Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( #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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://205267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-05-25 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?