Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Perl and DBI and CGI

by monkey_boy (Priest)
on Jun 23, 2005 at 14:26 UTC ( [id://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
        :-))
        sOKOle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found