Current Flights
prepare($sql);
// Execute the query
$stmt->execute();
// Fetch the results
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
function convertNumberToImageAirline($numberairline) {
$image_path = ''; // Set the default image path
// Check the number and set the image path accordingly
if ($numberairline == 11) {
$image_path = 'AIRLINE_NED.svg';
} else {
echo 'Invalid number';
exit();
}
// Output the image
echo '';
};
function convertNumberToPrefix($numberairline) {
$image_path = ''; // Set the default image path
// Check the number and set the image path accordingly
if ($numberairline == 1) {
$prefix = 'NL';
} else {
echo 'Invalid number';
exit();
}
// Output the image
echo '' . $prefix . '';
};
?>