in reply to Can't retrieve all records
Just keep doing the fetchrow_hashref till you get undef:
while($track_ref = $sth->fetchrow_hashref ()){ #do something }
Or better yet, use fetchall_hashref():
$track_ref = $sth->fetchall_hashref(<keyfield>);
Don't forget to specify a unique field to key the hash off of.
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Can't retrieve all records
by b310 (Scribe) on Jun 03, 2003 at 21:01 UTC | |
by theAcolyte (Pilgrim) on Jun 03, 2003 at 21:11 UTC | |
by arthas (Hermit) on Jun 03, 2003 at 21:16 UTC | |
by b310 (Scribe) on Jun 03, 2003 at 21:25 UTC | |
by arthas (Hermit) on Jun 03, 2003 at 21:32 UTC |