zx81 Posted February 6, 2009 Share Posted February 6, 2009 how could i use the mysql row id as a file name for an image? # $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'; Link to comment https://forums.phpfreaks.com/topic/144095-using-row-id-as-file-name/ Share on other sites More sharing options...
omfgthezerg Posted February 6, 2009 Share Posted February 6, 2009 if you mean an insert id? mysql_insert_id() http://www.php.net/mysql_insert_id Link to comment https://forums.phpfreaks.com/topic/144095-using-row-id-as-file-name/#findComment-756076 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.