Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Can't retrieve all records

by theAcolyte (Pilgrim)
on Jun 03, 2003 at 21:11 UTC ( [id://262791]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Can't retrieve all records
in thread Can't retrieve all records

fetchall_hashref is a fairly recent addition to DBI. Consider having your version of DBI upgraded (if that's an option).

The other way you can do it ... and there are pretier ways then this I'm sure, but it will work:

{ my ($dbh, $track_ref) = @_; $dbh = WebDB::connect (); my $sth = $dbh->prepare ("SELECT * FROM Shipments WHERE customer_id = +?"); $sth->execute($customer_id); while($track_ref = $sth->fetchrow_hashref) { .. do stuff with each row returned here } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found