function viewHotelRoomTypes() { $hotel_room_type = new HotelRoomType(); $data = $hotel_room_type->getAllHotelRoomTypePaginated($_REQUEST['page']); $count = $hotel_room_type->getAllHotelRoomTypeCount(); viewTable($data, $count[0]['count']); }