<?php
include 'C:\xampp\htdocs\admission_portal\includes\db.php';

$res = $conn->query("SELECT setting_key, setting_value FROM system_settings WHERE setting_key = 'current_academic_year'");
if($res->num_rows > 0) {
    $row = $res->fetch_assoc();
    echo 'Current Academic Year in DB: ' . $row['setting_value'];
} else {
    echo 'No setting found';
}
$conn->close();
?>
