Hi
Apologies if this is not the correct forum for this question.
I am running xampp.
I have 100+ image files in a directory that I wish to rename.
The old filename and the new filename are stored in an mysql database
I want to write a routine that will rename the files based on this information.
It is only the filename not the extension that will change although currently the filename (old and new)in the database includes the extension
My 'variables' (I use the term very loosely as I am a php newbie)
database name
database user
database password
tablename - containing both old and new filenames columns
oldfilename - containing old filenames
newfilename - containing new filenames (Note - there are some instances of oldfilename which have no value and therefore should be skipped)
location of files to rename
Can anyone help me put this together please?
Thanks
Mark