local changes.

This commit is contained in:
twotalesanimation
2025-07-24 07:20:51 +02:00
parent 53c29b62ca
commit b69f8f5f1b
24 changed files with 331 additions and 116 deletions

View File

@@ -32,7 +32,7 @@ function getTripCount()
$conn = openDatabaseConnection();
// SQL query to count the number of rows
$sql = "SELECT COUNT(*) AS total FROM trips WHERE start_date > CURDATE()";
$sql = "SELECT COUNT(*) AS total FROM trips WHERE published = 1 AND start_date > CURDATE()";
$result = $conn->query($sql);
// Fetch the count from the result
@@ -1391,7 +1391,8 @@ function countUpcomingTrips()
// Open database connection
$conn = openDatabaseConnection();
$query = "SELECT COUNT(*) AS trip_count FROM trips WHERE start_date > CURDATE()";
$query = "SELECT COUNT(*) AS trip_count FROM trips WHERE published = 1 AND start_date > CURDATE()";
if ($result = $conn->query($query)) {
$row = $result->fetch_assoc();