File manager - Edit - /home/autoph/public_html/voc/home/upload_pricelist.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); error_reporting(1); if ( $_FILES['file']['error'] > 0 ){ echo 'Error: ' . $_FILES['file']['error'] . '<br>'; } 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'"); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings