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

33 lines
911 B
PHP

<?php
include('includes/config/config.php');
include ('includes/functions.php');
include ('log_entry.php');
error_log ( "Start Printing Request Attributes" );
$requestStr="";
foreach ( $_REQUEST as $key => $value ) {
$requestStr.=$key . " : " . $value . "\n";
error_log ( $key . " : " . $value . "<br />\r\n" );
}
error_log ( "End Printing Request Attributes" );
save_log($requestStr,'Health Advice','SAVE','save_health_advice.php');
$communication_id = $_POST['communication_id'];
$com_item =$_POST['com_item'];
if(!empty($communication_id)){
$query = "update communication set com_item = '$com_item' where communication_id =
'$communication_id' ";
}
else {
$query = "insert into communication(com_item)
values ('$com_item'); ";
}
if (!$result = @mysqli_query($conn,$query)) {
die(mysqli_error($conn));
}
?>