$v) { $table = [ 'attraction_booking', 'hotel_booking', 'restaurant_booking', 'guide_booking', 'transport_flight_booking', 'transport_railway_booking' ]; foreach ($table as $item) { if ($item == 'hotel_booking') { $sql = "select h.name,hy.room_type_name,t1.price as fee from $item as t join hotel_room as t1 on t1.hotel_room_id = t.hotel_room_id join hotel as h on t1.hotel_id = h.hotel_id join hotel_room_type as hy on hy.room_type_id = t1.room_type_id where booking_id = " . $v['booking_id']; } if ($item == 'attraction_booking') { $sql = "select a.name,a.price as fee from $item as t join attraction as a on a.attraction_id =t.attraction_id where booking_id = " . $v['booking_id']; } if ($item == 'restaurant_booking') { $sql = "select t1.name,t1.fee from $item as t join restaurant as t1 on t1.restaurant_id = t.restaurant_id where booking_id = " . $v['booking_id']; } if ($item == 'guide_booking') { $sql = "select g.username,g.fee from $item as t join user_guide as g on g.u_id = t.guide_id where booking_id = " . $v['booking_id']; } if ($item == 'transport_flight_booking') { $sql = "select flight_code, class, fc.fee from $item as t join transport_flight_class as fc on fc.flight_class_id = t.flight_class_id join transport_flight as f on f.flight_id = fc.flight_id join transport_airline as a on a.airline_id = f.airline_id where booking_id = " . $v['booking_id']; } if ($item == 'transport_railway_booking') { $sql = "select train_code, class, rs.fee from $item as t join transport_railway_class as rs on rs.train_seat_id = t.railway_class_id join transport_railway as r on r.train_id = rs.train_id where booking_id = " . $v['booking_id']; } $result2 = mysqli_query($conn, $sql); $result2 = mysqli_fetch_all($result2, MYSQLI_ASSOC); $result[$k][$item] = $result2; } } ?> Plans@Roamease
Add Plan
$v) { $total = 0; ?>
Day Hotel Name Attraction Name Restaurant Name Guiding Name Flight Railway Total Fee Operate

Current'; } else { echo 'select'; } ?>

Reset Day