1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<?php $resultats=$bdd->query("SELECT dr_vehicles." . $services . " AS vehiclesservices,
dr.company AS drcompany,
dr.country AS drcountry,
dr_seats." . $services . " AS seatsservices,
dr_prices." . $services . " AS pricesservices,
dr_prices.minimum_" . $services . " AS pricesminimumservices,
dr_prices.disposal_" . $services . " AS pricesdisposalservices,
dr_prices.drid AS pricesdriverid,
dr_payment.cash AS paymentcash,
dr_luggage." . $services . " AS luggageservices
FROM dr
INNER JOIN dr_vehicles ON dr_vehicles.drid = dr.id
INNER JOIN dr_seats ON dr_seats.drid = dr.id
INNER JOIN dr_prices ON dr_prices.drid = dr_seats.drid
INNER JOIN dr_payment ON dr_payment.drid = dr_prices.drid
INNER JOIN dr_luggage ON dr_payment.drid = dr_luggage.drid WHERE '".$origin."' LIKE CONCAT('%',dr.country,'%')");
$resultats->setFetchMode(PDO::FETCH_OBJ);
while( $resultat = $resultats->fetch() ) { ?> |
Partager