ohctech_p8/save_salts.php
Dushant Mali 899fb3e65a Upgrade 7 to 8
Upgrade 7 to 8
2024-11-02 18:03:13 +05:30

24 lines
521 B
PHP

<?php
include('includes/config/config.php');
include ('includes/functions.php');
include ('log_entry.php');
$salt_id = $_POST['salt_id'];
$salt =$_POST['salt_name'];
if(!empty($salt_id)){
$in = "update";
$en=" where salt_id = '".$salt_id."'";
}
else {
$in = "insert into ";
$em='';
}
$query = $in." salt_master set salt_id = '$salt_id',salt_name = '$salt',modified_by='".$_SESSION['user_id']."'".$en;
error_log($query);
if (!$result = @mysqli_query($conn,$query)) {
die(mysqli_error($conn));
}
?>