Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Can't call method "bind_columns" on an undefined value

by jesuashok (Curate)
on Mar 28, 2007 at 02:01 UTC ( #606897=note: print w/replies, xml ) Need Help??


in reply to Can't call method "bind_columns" on an undefined value

my $data = qq(SELECT catname, path, root FROM categories WHERE root = +"1" ORDER BY catname ASC); my $sth = $dbh->prepare($data); $sth->execute() or die $dbh->errstr; my ($catname, $path, $root); $sth->bind_columns(\$catname, \$path, \$root); while($sth->fetch) { print qq~ <a href="manage.pl?process=categories&path=$path">$catname</a><br> ~; }

Variable Scoping in Perl: the basics


hmmm ....let me think what did I said

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606897]
help
Chatterbox?
holli writes MonkLinks 2.0
[holli]: Just to have a look what all the fuzz about the new JS features is about
[holli]: tag auch. wir sind ja unter uns :)
[Corion]: Hi holli ;)
[Corion]: In a way, it's sad that Firefox kills off the add-on functionality... But, as n-gate usually writes, "Firefox tries to be more like Chrome"
[holli]: it's not always possible to do a complete rewrite without cutting off some pigtails

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-11-20 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?