0 ){ echo 'Error: ' . $_FILES['file']['error'] . '
'; } else { $pricelistID = mysql_escape_string($_POST['promoID']); $fullPath = $pricelistID . '_' . $_FILES['file']['name']; if(move_uploaded_file($_FILES['file']['tmp_name'], 'uimages/pricelist/' .$fullPath)) { echo "File Uploaded Successfully"; } } $imageLink = "https://www.autohub.ph/connect/home/uimages/pricelist/".$fullPath; //mysql_query("INSERT INTO vts_profile_images (cust_id, file_path) VALUES('$customerID','$fullPath')"); mysql_query("UPDATE `vts_price_list` SET `image_link`='$imageLink' WHERE `id`='$pricelistID'"); ?>