<?php
ob_start();
ini_Set('display_errors',1);
error_reporting(E_ERROR);
// ── Update these credentials to match your MySQL server ──
$conn = mysqli_connect("localhost", 'mysoft365_F3raj5cep26', 'raJ$FK#3t') or die(mysqli_error($conn));
mysqli_select_db($conn, "mysoft365_tclub_root") or die(mysqli_error($conn));

// ── Auto-sync schema: creates/updates tables & columns defined in schema.php ──
require_once(__DIR__ . "/schema.php");
// sim_schema_sync($conn, "techfar_sim_root", $schema_root, "sim_seed_root");

if (session_status() !== PHP_SESSION_ACTIVE) {
    session_start();
}
if (isset($_SESSION["zdbyear_tclub_root"])) {
    // sim_schema_sync($conn, $_SESSION["zdbyear_sim_root"], $schema_year, "sim_seed_year");
}
?>
