File manager - Edit - /home/autoph/public_html/voc/home/save_new_promo.php
Back
<?php include 'core/init.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); $userID=$user_data['u_id']; $toDate = date_create() ->format("Y-m-d"); ?> <?php //if submit/ save to databasevar if(isset($_POST['done'])){ $userBrand = mysql_escape_string($_POST['userBrand']); $promoTitle = mysql_escape_string($_POST['promoTitle']); $promoStart = mysql_escape_string($_POST['promoStart']); $promoEnd = mysql_escape_string($_POST['promoEnd']); $promoDiscount = mysql_escape_string($_POST['promoDiscount']); $promoDesc = mysql_escape_string($_POST['promoDesc']); //===================================================================================================================================================== //===================================================================================================================================================== mysql_query("INSERT INTO promo_list (promo_title, promo_start, promo_end,promo_discount,promo_desc,promo_brand,added_by,date_added) VALUES('{$promoTitle}','{$promoStart}','{$promoEnd}','{$promoDiscount}','{$promoDesc}','{$userBrand}','{$userID}','{$toDate}')"); echo "New PROMO has been added and posted to the APP"; //mysql_query("UPDATE db_vehicle_inventory SET `price`='$unitPriceA',`discount`='$unitDiscountA',`commission`='$unitCommA' WHERE description ='$unitDesc'"); //UPDATE TABLE AFTER SAVING THE RECORD exit(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings