Re: how rename an upload-file beginning with the record-ID
| From: | Ryan Adams | Date: | Tue, 23 May 2000 16:01:32 +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-370@lists.php.net to get a copy of this message | ||
might this work?
$filename = mysql_insert_id()+1.$filename;
mysql_query ("insert into tablename (filename, ...) values ('$filename', ...)");
- Ryan
*************************************
Ryan Adams
Online Systems Development
College of Family & Consumer Sciences
The University of Georgia
Athens, GA 30602
(706) 583-0344
radams@fcs.uga.edu
*************************************
On Tue, May 23, 2000 at 04:36:32PM +0200, helmut ott wrote:
> 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
>
---end quoted text---