{$alert['message']}
";
unset($_SESSION['alert']); // Clear the alert after displaying
}
?>
Login
Access to our dashboard
0) { $_SESSION['login'] = $admin_row['id']; $_SESSION['name'] = $admin_row['name']; header("Location: dashboard.php"); exit; } else { // Set the alert message in session $_SESSION['alert'] = [ 'message' => 'Login Information is Incorrect.', 'type' => 'danger' // Bootstrap alert class for error ]; header("Location: index.php"); exit; } } ?>
Access to our dashboard