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

@@ -81,7 +81,11 @@ if (countUpcomingTrips() > 0) { ?>
<div class="row justify-content-center">
<?php
// Query to retrieve data from the trips table
$sql = "SELECT trip_id, trip_name, location, short_description, start_date, end_date, vehicle_capacity, cost_members, places_booked FROM trips ORDER BY trip_id DESC LIMIT 4";
$sql = "SELECT trip_id, trip_name, location, short_description, start_date, end_date, vehicle_capacity, cost_members, places_booked
FROM trips
WHERE published = 1
ORDER BY trip_id DESC
LIMIT 4";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
@@ -114,7 +118,7 @@ if (countUpcomingTrips() > 0) { ?>
</div>
<div class="destination-footer">
<span class="price"><span>R ' . $cost_members . '</span>/per member</span>
<a href="trip-details.php?trip_id=' . $trip_id . '" class="read-more">Book Now <i class="fal fa-angle-right"></i></a>
<a href="trip-details.php?token=' . encryptData($trip_id, $salt) . '" class="read-more">Book Now <i class="fal fa-angle-right"></i></a>
</div>
</div>
</div>';