Re: how rename an upload-file beginning with the record-ID

From: Date: Tue, 23 May 2000 14:42:12 +0000
Subject: Re: how rename an upload-file beginning with the record-ID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-359@lists.php.net to get a copy of this message
mysql_insert_id() will tell you the value of the autoincremented field right after you perform an insert and then you can safely rename the file Pavel ----- Original Message ----- From: "helmut ott" <haott@freenet.de> To: <php-general@lists.php.net> Sent: Tuesday, May 23, 2000 4:36 PM Subject: [PHP-GENERAL] how rename an upload-file beginning with the record-ID Hi I have an mysql-database-entry-form with an image-upload-field. how can I get the upload-file renamed to a new name beginning with the record-ID. The record-ID is auto-increment and while I fillout the form I dont have it yet (after submitting the ID is incremented and assignbed I think). Can anybody give me an idea, how to..? Thanks everybody helmut

« previous php.general (#359) next »