Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Building an index for next/last in a photo album.

by ccn (Vicar)
on Jul 26, 2004 at 20:24 UTC ( [id://377561] : note . print w/replies, xml ) Need Help??


in reply to Building an index for next/last in a photo album.

what would be the quickest/shortest way to turn the $album_idx = $dbh->selectall_arrayref() into just an array?

@album_idx = @{$dbh->selectall_arrayref()}

Update: also, you may put album_id in the url, and eliminate the first SQL query