Swansea Inbound PPR ADMIN
January
February
March
April
May
June
July
August
September
October
November
December
Submit
Download CSV
query($sql); // Check if there are results if ($result->num_rows > 0) { // Start HTML table echo '
'; // Output table headers (assuming column names are known) $fields = $result->fetch_fields(); foreach ($fields as $field) { if ($field->name != 'id') { echo '
' . htmlspecialchars($field->name ?? '') . '
'; } } echo '
'; // Output table rows while ($row = $result->fetch_assoc()) { echo '
'; foreach ($row as $key => $value) { if ($key != 'id') { echo '
' . htmlspecialchars($value ?? '') . '
'; } } echo '
'; } echo '
'; } else { echo "No results found."; } $conn->close(); ?>