prepare("SELECT * FROM orders WHERE user_id = ? ORDER BY order_date DESC"); $stmt->execute([$user_id]); $orders = $stmt->fetchAll(); ?>