get unique id
Is it possible to get the unique ID of the record and insert it into mkdir() command to create a sub folder that is the new ID of the account, before the new record is created?
for example
New record is created and the photo is uploaded to the directory/sub folder that is named the same as the ID auto generated. All done with the same insert record funtion on the same page