File "manage-sets-process.php"
Full Path: /home/quiczmwg/lightspringdigitals.com/admin/manage-sets-process.php
File size: 612 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
//
include_once ("../_db.php");
// print_r($_POST);
if($_SERVER['REQUEST_METHOD']=="POST"){
$category = cleanInput($_POST['category']);
$prices= cleanInput($_POST['prices']);
if(isset($_POST['btnSave'])){
$userid = md5(date("Ymdhis").rand(203991, 483678));
$sql = $conn->query("INSERT INTO dsettings SET userid='$userid', dcategory='$category', dpricess='$prices' ");
}else{
$id = $_POST['id'];
$sql = $conn->query("UPDATE dsettings SET dcategory='$category', dpricess='$prices' WHERE id='$id' ");
}
header("Location:Manage-settings.php");
}