My script takes a CSV file containing people's details and inputs them into my mySQL database table using "INSERT INTO table". The primary key of the table is their ID number which is auto-incremented on each insertion.
I will have some PHP after each insertion to make a directory for them on the server. The directory name is their auto generated mySQL ID number.
How could I get their auto-generated ID number after inserting their details in to the database so I can make the directory for each person?