<?php
ob_start();
include 'include/db.php';
include 'include/connect.php';
$id = $_POST['id'];
$data['book_status'] = $_POST['status'];
$rs = $db->update('tbbooking',$data,'book_id',$id);
if($rs){
	echo "0";
} else {
	echo "1";
}

?>