prepare('SELECT * FROM orders WHERE client_id = ? ORDER BY created_at DESC'); $stmt->execute([$client_id]); $orders = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { error_log("Database error in orders.php: " . $e->getMessage()); $error_message = t('error_fetching_orders'); } } $page_title = t('title_orders'); require_once 'includes/header.php'; require_once 'includes/currency.php'; require_once 'includes/html_head.php'; ?>

#