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

monkey_boy, your script works, but main problem re-occured When I have "Dr. John Bull" field it prints "Dr." only... could you solve ?

Replies are listed 'Best First'.
Re^5: Perl and DBI and CGI
by monkey_boy (Priest) on Jun 23, 2005 at 14:26 UTC
    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...
        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...