$data="SELECT TRNS.transport_id AS id, CUST.customer_id AS customer_id,
$driv_id=$rs->driver_id;
CONCAT(CUST.first_name,' ',CUST.last_name) AS customer_name,
TRNS.pickup_lng AS source_longitude, TRNS.pickup_lat AS source_latitude,
$data="SELECT t.transport_id AS id, customers.customer_id AS customer_id, CONCAT(customers.first_name,
TRNS.drop_location AS destination_location, TRNS.drop_lat AS destination_latitude,
' ',customers.last_name) AS customer_name, customers.profile_image AS customer_photo, t.pickup_location AS source_location, t.pickup_lng AS source_longitude, t.pickup_lat AS source_latitude, t.drop_location AS destination_location, t.drop_lat AS destination_latitude, t.drop_lng AS destination_longitude FROM transport_details AS t LEFT JOIN drivers AS d ON d.driver_id = t.driver_id LEFT JOIN customers ON t.customer_id = customers.customer_id WHERE t.driver_id = '$driv_id' AND request_type = 3 AND t.status = 6";
CUST.profile_image AS customer_photo, TRNS.pickup_location AS source_location,
TRNS.drop_lng AS destination_longitude, DR.status AS request_status,
TRNS.status AS ride_status,TRNS.trip_cost AS fare
FROM transport_details AS TRNS
INNER JOIN driver_request AS DR ON DR.trip_id = TRNS.transport_id
INNER JOIN customers AS CUST ON TRNS.customer_id = CUST.customer_id
WHERE DR.driver_id = '$driv_id' AND request_type = 3 AND
$data1="SELECT t.transport_id AS id, customers.customer_id AS customer_id, CONCAT(customers.first_name,
$result[$key]['type']=2;
' ',customers.last_name) AS customer_name, customers.profile_image AS customer_photo, t.pickup_location AS source_location, t.pickup_lng AS source_longitude, t.pickup_lat AS source_latitude, t.drop_location AS destination_location, t.drop_lat AS destination_latitude, t.drop_lng AS destination_longitude FROM transport_details AS t LEFT JOIN drivers AS d ON d.driver_id = t.driver_id LEFT JOIN customers ON t.customer_id = customers.customer_id WHERE t.driver_id = '$driv_id' AND request_type = 3 AND t.status = 3";