| Server IP : 172.64.80.1 / Your IP : 172.71.120.135 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_main/ |
Upload File : |
<?php
//ob_flush();
extract($_POST);
require_once('../connect.php');
$db = db_connect();
$result=$db->query("select * from siwesexception where matNo='$matNo'");
$num = $result->rowCount();
if ($num==1){
header('location:' . 'siwesCarryActivate.php?id=4');
die("");
}
$result_error=$db->query("select * from realdata where matNo='$matNo'");
$num_error = $result_error->rowCount();
if ($num_error==1) {
$subQuery= $db->query("INSERT INTO `fedpoly`.`siwesexception` (`sn`, `matNo`, `reason`) VALUES (NULL, '$matNo', '$reason') ");
if ($subQuery) {
header('location:' . 'siwesCarryActivate.php?id=1');
}else{
header('location:' . 'siwesCarryActivate.php?id=2');
}
} else {
header('location:' . 'siwesCarryActivate.php?id=3');
}
ob_end_flush();
?>