<?php
include('includes/session.php');
error_reporting(0);
include('includes/dbconnection.php');

// Get the student's class from the session
$class = $_SESSION['class'];

// Redirect based on class
switch ($class) {
    case 'JSS 1':
        header("Location: boardingfees.php");
        break;
    case 'JSS 2':
        header("Location: boardingfees.php");
        break;
    case 'JSS 3':
        header("Location: boardingfees.php");
        break;
    case 'SS 1':
        header("Location: boardingfees1.php");
        break;
    case 'SS 2':
        header("Location: boardingfees1.php");
        break;
    case 'SS 3':
        header("Location: boardingfees1.php");
        break;
    default:
        header("Location: default_fees1.php");
        break;
}
exit();
?>