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
In reply to Re: Can't retrieve all records
by pzbagel
in thread Can't retrieve all records
by b310
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |