Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-08-20 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (107 votes), past polls