if($_GET["search"] != ""){
$sql="SELECT tblroom.*, tbltype.* tblstatus.* FROM tblroom, tbltype ,tblstatus WHERE tblroom.type_id=tbltype.type_id AND tblroom.status_id=tblstatus.status_id AND (roomed_id LIKE '%".$_GET["search"]."%' or status_id LIKE '%".$_GET["search"]."%' or floor LIKE '%".$_GET["search"]."%' )";
}else{
$sql="SELECT tblroom.*, tbltype.*, tblstatus.* FROM tblroom, tbltype ,tblstatus WHERE tblroom.type_id=tbltype.type_id AND tblroom.status_id=tblstatus.status_id";
$sql="SELECT tblroom.*, tbltype.*, tblstatus.* FROM tblroom, tbltype ,tblstatus WHERE tblroom.type_id=tbltype.type_id AND tblroom.status_id=tblstatus.status_id";