$value ) { $requestStr.=$key . " : " . $value . "\n"; error_log ( $key . " : " . $value . "
\r\n" ); } error_log ( "End Printing Request Attributes" ); save_log($requestStr,'Oxygen Cylinder','SAVE','save_oxygen_cylinder.php'); $query_initial=""; $endquery=""; $id = $_REQUEST['id']; begin(); if(!empty($id)){ $query_initial="update "; $endquery=" where id = '".$id."' "; }else{ $query_initial="insert into "; } $date_n_time = $_POST['date_n_time']; $hydro_test_date = $_POST['hydro_test_date']; $hydro_test_date_valid_upto = $_POST['hydro_test_date_valid_upto']; $query=$query_initial." oxygen_cylinder set type='".$_POST['type']."',oxygen_kit_no='".$_POST['cylinder_number']."',date_n_time='$date_n_time',hydro_test_date='$hydro_test_date',hydro_test='".$_POST['hydro_test']."',hydro_test_remarks='".$_POST['hydro_test_remarks']."',hydro_test_date_valid_upto='$hydro_test_date_valid_upto',loc ='".$_POST['location']."',ohc_type_id ='".$_SESSION['current_ohcttype']."' ".$endquery; //echo $query; error_log($query."dipak mali"); if (!$result = mysqli_query($conn,$query)) { rollback(); die(mysqli_error($conn)); } commit(); ?>