} .rates_vertical td { padding: 1px 3px; border: 0px; font-size: 9px !important; background-color: #eee; border-radius: 3px; } </style> <div class="hotel-check-rates-results-title" style="clear:both;"></div> <div class="hotel-room-types-results-main-rows"> <?php $hotelRoomType->setRoomTypeHotelId($hotels_id); $getRoomType_row = $hotelRoomType->getHotelRoomTypeFromHotelsId(); for ($k = 0; $k < count($getRoomType_row); $k++) { $hotelRoomType->extractor($getRoomType_row, $k); $no_of_rooms = 0; $all_dates_available = true; $rc_in_date = $_REQUEST['check_in_date']; $rc_out_date = $_REQUEST['check_out_date']; $room_control = new RoomControl(); $_temp = $room_control->getAllRoomDates($rc_in_date, $rc_out_date, $hotelRoomType->roomTypeId()); $number_array = array(); for ($i = 0; $i < count($_temp); $i++) { $room_control->extractor($_temp, $i); if ($room_control->rcNumOfRooms() == 0) { $all_dates_available = false; } //$no_of_rooms = $no_of_rooms + $room_control->rcNumOfRooms();