prepare($query); $stmt->bindValue(':user_id', $userId, SQLITE3_INTEGER); $result = $stmt->execute(); $subscriptions = []; while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $subscriptions[] = $row; } $yearsToLoad = $calendarYear - $currentYear + 1; ?>

Calendar

 
$startOfMonth) { $startDate = strtotime("-" . $incrementString, $startDate); } for ($date = $startDate; $date <= $endDate; $date = strtotime($incrementString, $date)) { if (date('Y-m', $date) == $calendarYear . '-' . str_pad($calendarMonth, 2, '0', STR_PAD_LEFT)) { if (date('d', $date) == $day) { ?>
$startOfMonth) { $startDate = strtotime("-" . $incrementString, $startDate); } for ($date = $startDate; $date <= $endDate; $date = strtotime($incrementString, $date)) { if (date('Y-m', $date) == $calendarYear . '-' . str_pad($calendarMonth, 2, '0', STR_PAD_LEFT)) { if (date('d', $date) == $day) { ?>