<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once 'functions.php';

// Get a few records
$records = getRecords();
if (empty($records)) {
    die("No records found. Add some data first.");
}

// Export to Excel for current month/year
$month = date('m');
$year = date('Y');
exportToExcel($records, $month, $year);
?>