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

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


// Redirect based on scholarship status
switch ($scholarship) {
    case 'Yesddddd':
        header("Location: payscholarship_feesb.php?tab_id=$tabSessionID");
        break;
    case 'No':
        header("Location: payschoolfeesb.php?tab_id=$tabSessionID");
        break;
    default:
        header("Location: payschoolfeesb.php?tab_id=$tabSessionID");
        break;
}
exit();
?>