<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Zapper Dashboard</title>
    <!-- Include Font Awesome for icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
    <!-- Include specific version of Chart.js 2.9.4 -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>
    <!-- Ensure responsive page -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Include external CSS -->
    <link rel="stylesheet" href="styles/style.css">
</head>
<body>
    <div class="dashboard">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="logo">Zapper</div>
            <nav>
                <ul>
                    <li><a href="index.html"><i class="fas fa-home"></i> Dashboard</a></li>
                    <li><a href="portfolio-performance.html"><i class="fas fa-chart-line"></i> Portfolio Performance</a></li>
                    <li><a href="transactions.html"><i class="fas fa-wallet"></i> Transactions</a></li>
                    <li><a href="upload.html"><i class="fas fa-upload"></i> Upload</a></li>
                    <!-- Additional menu items -->
                    <li><a href="#"><i class="fas fa-seedling"></i> Farm</a></li>
                    <li><a href="#"><i class="fas fa-exchange-alt"></i> Bridge</a></li>
                    <li><a href="#"><i class="fas fa-history"></i> History</a></li>
                    <li><a href="#"><i class="fas fa-cogs"></i> Settings</a></li>
                </ul>
            </nav>
            <div class="logout"><i class="fas fa-sign-out-alt"></i> Logout</div>
        </aside>
        <!-- Main content -->
        <main class="main-content">
            <header class="header">
                <div class="search-bar">
                    <input type="text" placeholder="Search token, wallet">
                </div>
                <div class="currency-selector">
                    <img src="images/us-flag.png" alt="USD"> USD
                </div>
                <div class="user-profile">
                    <img src="images/user-avatar.png" alt="User">
                </div>
            </header>
            <!-- Portfolio Performance Chart -->
            <section class="chart-container">
                <div class="chart-header">
                    <h3>Portfolio Performance</h3>
                    <select>
                        <option>Monthly</option>
                        <option>Yearly</option>
                    </select>
                </div>
                <canvas id="portfolioChart"></canvas>
            </section>
            <!-- Weekly Performance Chart -->
            <section class="chart-container">
                <div class="chart-header">
                    <h3>Weekly Performance</h3>
                    <select>
                        <option>This Week</option>
                        <option>Last Week</option>
                    </select>
                </div>
                <canvas id="weeklyChart"></canvas>
            </section>
            <!-- Transactions Section -->
            <div class="transactions">
                <h3>Transactions</h3>
                <div id="transactionsList" class="transaction-list"></div>
                <div id="pagination" class="pagination"></div>
            </div>
        </main>
    </div>

    <!-- Include external JavaScript -->
    <script src="js/main.js"></script>
</body>
</html>
<?php
// getTransactions.php
// Fetch transactions data with pagination support

header('Content-Type: application/json');

// Database connection parameters
$servername = "fdb1030.awardspace.net";
$username = "4252301_714514419";
$password = "7gkczqm8PR6H";
$dbname = "4252301_714514419";

// Получаем параметры пагинации
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$limit = isset($_GET['limit']) ? intval($_GET['limit']) : 15;
$offset = ($page - 1) * $limit;

try {
    // Подключаемся к базе данных
    $conn = new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8mb4", $username, $password);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    // Получаем общее количество записей
    $countStmt = $conn->query("SELECT COUNT(*) as total FROM Transactions");
    $totalCount = $countStmt->fetch(PDO::FETCH_ASSOC)['total'];
    $totalPages = ceil($totalCount / $limit);

    // Получаем данные транзакций
    $stmt = $conn->prepare("SELECT user, amount, date FROM Transactions ORDER BY date DESC LIMIT :limit OFFSET :offset");
    $stmt->bindParam(':limit', $limit, PDO::PARAM_INT);
    $stmt->bindParam(':offset', $offset, PDO::PARAM_INT);
    $stmt->execute();

    $data = $stmt->fetchAll(PDO::FETCH_ASSOC);

    // Возвращаем данные в формате JSON
    echo json_encode([
        'data' => $data,
        'totalPages' => $totalPages
    ]);

} catch (PDOException $e) {
    // Возвращаем ошибку в формате JSON
    echo json_encode(['error' => $e->getMessage()]);
}

$conn = null;
?>

на странице загрузки возникает ошибка
index.html
Error: Failed to load portfolio performance data.
графики не загружаются, сможешь вывеси в лог ошибки на страницу сайта ?
И исправить ошибку