sOKOle has asked for the wisdom of the Perl Monks concerning the following question:
My best friends, please help me to improve this:
The Part of CGI Code is:
When the Name in my Data Base is "Dr. John Bull" only "Dr." is printed. How to improve the code to have full name printed?
Thank you in advance,
Sincerely yours,
sOKOle
The Part of CGI Code is:
The Problem and Question are:$query = "SELECT * FROM users"; $sth = $dbh->prepare($query); $sth->execute(); $sth->bind_columns(undef, \$Name, \$Email); while($sth->fetch()){ print "$Name, $Email";} $sth->finish(); $dbh->disconnect;erl
When the Name in my Data Base is "Dr. John Bull" only "Dr." is printed. How to improve the code to have full name printed?
Thank you in advance,
Sincerely yours,
sOKOle
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl and DBI and CGI
by monkey_boy (Priest) on Jun 23, 2005 at 13:00 UTC | |
by sOKOle (Acolyte) on Jun 23, 2005 at 13:19 UTC | |
by monkey_boy (Priest) on Jun 23, 2005 at 13:26 UTC | |
by sOKOle (Acolyte) on Jun 23, 2005 at 13:53 UTC | |
by monkey_boy (Priest) on Jun 23, 2005 at 14:26 UTC | |
| |
by sapnac (Beadle) on Jun 23, 2005 at 13:27 UTC | |
by fmerges (Chaplain) on Jun 24, 2005 at 12:49 UTC | |
by sOKOle (Acolyte) on Jun 23, 2005 at 14:05 UTC | |
by sapnac (Beadle) on Jun 23, 2005 at 15:06 UTC | |
| |
by blazar (Canon) on Jun 23, 2005 at 13:23 UTC | |
Re: Perl and DBI and CGI
by blazar (Canon) on Jun 23, 2005 at 12:53 UTC |
Back to
Seekers of Perl Wisdom