Soldato
- Joined
- 30 Nov 2005
- Posts
- 3,084
- Location
- London
Developing an Upload in PHP and want to change the uploaded file name to the record ID in the MySQL database.
So basicaly when the user uploads, the file name is changed to become the record ID. This means that there will never be the same file name, because the ID is an Int and auto_increment.
Not sure the best way to do this is.
Any ideas?
Cheers all.
So basicaly when the user uploads, the file name is changed to become the record ID. This means that there will never be the same file name, because the ID is an Int and auto_increment.
Not sure the best way to do this is.
Any ideas?
Cheers all.
Last edited: