in reply to Re: Caching images from RDBMS
in thread Caching images from RDBMS
What i didn't explain in my original post is the image name is unique and changes with date. Here is the sub that generates the URL
sub image_path { my ($id, $image) = @_; my ($mydate) = $dbh->selectrow_array( "SELECT time FROM offerte WHERE id=$id" ); return "/images.cgi/${id}_${image}_${mydate}.jpg"; }
Thanks for the suggestions.
$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g
|
|---|