coyotlgw has asked for the wisdom of the Perl Monks concerning the following question:
The code snippet in question is:Can't call method "bind_columns" without a package or object refer +ence at /var/www/cgi-bin/noctracker.pl line 95.
use DBI; $dbh = DBI->connect("DBI:mysql:gds:localhost", "tools", "meep") or + die ("No love for the DBI connect"); $sql = qq{ SELECT uname, fname, fgroup, dmod, accts FROM noctracke +r WHERE uname = 'gwalker'} ; $sth = $dbh->do( $sql ) or die ("Could not select"); my( $uname, $fname, $fgroup, $dmod, $accts ); $sth->bind_columns( undef, \$uname, \$fname, \$fgroup, \$dmod, \$a +ccts ); # this is line 95
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and the hell it has made my life...
by eric256 (Parson) on Aug 21, 2003 at 20:48 UTC | |
|
Re: DBI and the hell it has made my life...
by princepawn (Parson) on Aug 21, 2003 at 20:56 UTC | |
|
Re: DBI and the hell it has made my life...
by lestrrat (Deacon) on Aug 21, 2003 at 20:49 UTC | |
|
Re: DBI and the hell it has made my life...
by coyotlgw (Initiate) on Aug 21, 2003 at 21:08 UTC |