File manager - Edit - /home/autoph/public_html/voc/home/CL_UPLOAD_ACCEPTANCE_LETTER.php
Back
<?php include 'core/database/connect.php'; //$connect_error = 'Sorry, we\'re experiencing connection problem. Please try again later... Thank you!'; //mysql_connect('localhost','root','aee1024') or die ($connect_error); //mysql_select_db('db_vts') or die($connect_error); $myDate = date_create() ->format("Y-m-d"); error_reporting(1); if ( $_FILES['file']['error'] > 0 ){ echo 'Error: ' . $_FILES['file']['error'] . '<br>'; } else { $clearanceID = mysql_escape_string($_POST['clearanceID']); $addCompID = mysql_escape_string($_POST['addCompID']); $fullPath = $clearanceID . '_acl_' . $_FILES['file']['name']; if(move_uploaded_file($_FILES['file']['tmp_name'], 'FILES/clearance/' .$fullPath)) { echo "File Uploaded Successfully"; } } //$imageLink = "https://www.autohub.ph/connect/home/uimages/pricelist/".$fullPath; $FileLink = "https://www.autohub.ph/connect/home/FILES/clearance/".$fullPath; //mysql_query("INSERT INTO vts_profile_images (cust_id, file_path) VALUES('$customerID','$fullPath')"); mysql_query("UPDATE `cl_clearance_header` SET `cl_acceptance_letter`='$FileLink' WHERE `h_id`='$clearanceID'"); echo "<script>alert('New document has been uploaded successfully.')</script>"; ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings