Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^5: Perl and DBI and CGI

by monkey_boy (Priest)
on Jun 23, 2005 at 14:26 UTC ( #469404=note: print w/replies, xml ) Need Help??

in reply to Re^4: Perl and DBI and CGI
in thread Perl and DBI and CGI

Im finding it hard to help as you dont provide data for us!
What does this print?

use Data::Dumper; my $ref = $dbh->selectall_arrayref("select * from users") || die $dbh->errstr; print Dumper($ref);

This is not a Signature...

Replies are listed 'Best First'.
Re^6: Perl and DBI and CGI
by sOKOle (Acolyte) on Jun 27, 2005 at 13:30 UTC
      Essentaillay, you have the answer,
      my ($Name,$Email) = @{$ref}; print "My name is : $Name\n"; print "My email is : $Email\n";

      If this works ok in a terminal, and you still have problems, then you have problems with your html , and not your perl.

      This is not a Signature...
        Thank you, Thank you,
        another error is fixed

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-10-24 19:23 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (89 votes). Check out past polls.