28 lines
704 B
PHP
28 lines
704 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('log_entry.php');
|
|
$state_id= $_POST['id'];
|
|
$state= $_POST['state'];
|
|
$AC_cost= $_POST['AC_cost'];
|
|
$AC_amb_charge= $_POST['AC_amb_charge'];
|
|
|
|
$NON_AC_cost= $_POST['NON_AC_cost'];
|
|
$NON_AC_amb_charge= $_POST['NON_AC_amb_charge'];
|
|
error_log($state_id."dipak");
|
|
|
|
// $head_name = $_POST['section_head_name'];
|
|
if(!empty($state_id)){
|
|
$query = "update state_form_master set state_code = '$state' where id = '".$state_id."'";
|
|
|
|
error_log("update city: ".$query);
|
|
}
|
|
else {
|
|
$query = "insert into state_form_master set state_code = '$state'";
|
|
|
|
error_log("insert st".$query);
|
|
|
|
}
|
|
if (!$result = @mysqli_query($conn,$query)) {
|
|
exit(mysqli_error($conn));
|
|
}
|