Im likely doing something very simply wrong, but when I try to make a directory (using a variable of an insert just performed as the last folder name), I get the error:
You have an error in your string:
mkdir("images/listing-images/rent/'.$insertID.");
should be:
mkdir("images/listing-images/rent/$insertID");