drag and drop is unable to save the path into mysql database for php
Hi i am newbies here and this is my first post asking for help
can someone help me to correct this code so that i can use it.
thie is the LINK that i copy the code and the below code is copy from HERE
thank you
- if(move_uploaded_file($pic['tmp_name'], $upload_dir.$pic['name'])){
- // now insert the data in the database
-
-
-
- $stm = "INSERT INTO images (new) VALUES (:new)";
- $query = $db->prepare($stm);
- $query->execute(array(':new'=>$pic['name'])
- );
- exit_status('File was uploaded successfuly!');
- }