Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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

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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found