.I have created an image upload form using php where the image will be uploaded to the server directory folder and the name of the picture on the database.. so that when i have to use the images and call it in my browser i will only use a select statement to retrieve the image from the database using also an id. i also included a restriction code where if the user uploads images with the same name an error message will be prompted and the name will not be saved on the database.
what i want to do is to add a renaming function where the images will be renamed before being saved on the directory. can anyone please guide me on the right approach on this. Thanks in advance!