[PHP] Re: Image Upload, renaming question

2001-11-16 Thread George Whiffen
Joe, One approach that works for me is to have a separate IMAGE table with an automatically generated primary key image_id (auto_increment with MySQL). I don't use this store the image, but just to give me the unique name for the image file. I also use the IMAGE table to store away the origi

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Thx Richard, I would like the files to all be dumped into one directory, each with a unique name. Then I will create a path and store that in the db. Thx for the ideas, I will check them out and get back to youvia this thread. Cheers Joe:) "Richard Lynch" <[EMAIL PROTECTED]> wrote in message [E

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Richard Lynch
Joe Van Meer wrote: > Hi there, I have an upload form on my website that works great, however I > have come to a roadblock...how the heck do I rename the copied file? > Everytime I upload an image it overwrites the old one with the new. The > code below uploads the file and displays the following