����JFIF��`�`�����prepare("DELETE FROM bikes WHERE id = ?"); $stmt->execute([$del_id]); redirect("manage_bikes.php?msg=deleted"); } catch (\PDOException $e) { $error = "Cannot delete this bike because it is linked to other records (e.g. inspections)."; } } $stmt = $pdo->query("SELECT b.*, (SELECT image_url FROM bike_images WHERE bike_id = b.id AND is_main = TRUE LIMIT 1) as main_image, (SELECT COUNT(*) FROM bike_360_images WHERE bike_id = b.id) as has_360 FROM bikes b ORDER BY b.created_at DESC"); $bikes = $stmt->fetchAll(); ?> Manage Bikes - ReOwn Admin

Manage Bikes

Add New Bike
Bike deleted successfully.
0): ?>
Ref ID Image Model Name Price Year Status 360° Actions
No bikes found.