mkdir() says theres no such directory and fails?

后端 未结 7 2053
逝去的感伤
逝去的感伤 2020-12-16 09:07

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:

7条回答
  •  鱼传尺愫
    2020-12-16 09:41

    You have an error in your string:

    mkdir("images/listing-images/rent/'.$insertID.");
    

    should be:

    mkdir("images/listing-images/rent/$insertID");
    

提交回复
热议问题