$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("first_name","last_name","no_of_adult","no_of_child","booking_amount","booking_status"));
//action type switch - on click on column, value will be changed and saved
$action = array("1"=>"0","0"=>"1");//action to be performed, like when value is 1 set it to 0
$text = array("1" => "approved","0"=>"unapproved");
$pdocrud->enqueueActions($action,"switch",$text,"booking_status",array());
//action type url - redirect to another page with primary key
$action = "http://www.google.com?url={pk}";//{another example of adding url {} text will be replaced by the primary key value
$pdocrud->enqueueActions($action,"url","","first_name",array());
echo $pdocrud->dbTable("bookroom")->render();