using row id as file name
Posted: Fri Feb 06, 2009 10:01 am
hi i was just wondering how i could use the row id as a file name for images?
at present it uses the product code which is leading to problems and as i later want to be able to change the image.
cheers
Code: Select all
$stock = $_POST["prod_code"];
$size = 75; // the thumbnail height
$filedir = 'cat_images/'; // the directory for the original image
$thumbdir = 'cat_images/'; // the directory for the thumbnail image
$prefix = 'small_'; // the prefix to be added to the original name
$maxfile = '2000000';
cheers