ESH/save_active_ingredient.php
2024-10-23 18:28:06 +05:30

23 lines
783 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,'Manage Item','SAVE','save_active_ingredient.php');
$ingredient_id = $_POST['ingredient_id'];
//$ingredient_name =$_POST['ingredient_name'];
echo $_POST['ingredient_name'];
$query = "insert into ingredient(ingredient_name,modified_by)
values ('$ingredient_name','".$_SESSION['user_id']."' )";
if (!$result = @mysqli_query($conn,$query)) {
exit(mysqli_error($conn));
}
?>