";
return $tableHtml;
}
$conn = connectDb();
$sql = "SELECT id, status, ac_reg, ac_type, ac_call, TIME_FORMAT(eta,'%H:%i') AS ETA, fuel, in_from, pob_in, notes FROM submitted WHERE DATE(eta) = CURDATE() AND (status = 'NEW' OR status = 'CANCELED') ORDER BY eta ASC;"; // Replace with your table name
$result = $conn->query($sql);
if ($result->num_rows > 0) {
echo renderTable($result);
} else {
echo "No results found.";
}
?>
Visiting Aircraft
query($sql);
// Check if there are results
if ($result->num_rows > 0) {
echo renderTable($result); // Use the renderTable function
} else {
echo "No results found.";
}
// Close the database connection
$conn->close();
?>