| Server IP : 172.64.80.1 / Your IP : 172.70.127.136 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_backup/ace_entranceForm/ |
Upload File : |
<?php
session_start();
require_once('headMain2.php');
extract($_POST);
$matNo=$_SESSION['matNo'];
$qualified=true;
for ($i=0;$i<5;++$i){
if ($res[$i] < 1 or $res[$i] > 6)
{
$qualified=false;
break;
}
}
if ($qualified==true )
{ require('../connect.php');
$db=db_connect();
$sql="update ace_admitted set olevelverify=1 where formno='" .$_SESSION['matNo'] . "'";
$result=$db->query($sql);
echo "<div style='color:green;text-align:center'> <h2>YOU ARE QUALIFIED FOR THIS DEPARTMENT. <BR/> PLEASE PROCEED WITH YOUR REGISTRATION </h2></div>";
$db->query("INSERT INTO `fedpoly`.`olevelVeriefied` (`sn`, `formNo`, `english`, `math`, `sub1`, `res1`, `sub2`, `res2`, `sub3`, `res3`) VALUES (NULL, '$matNo', '$res[0]', '$res[1]', '$sel1', '$res[2]', '$sel2', '$res[3]', '$sel3', '$res[4]')");
}
else
echo "<div Style='color:red;text-align:center'> <h1>YOU ARE NOT QUALIFIED FOR THIS DEPARTMENT </h1> </div>";
echo "<a href='adminStatus_process.php'>...Continue >>> </a>"
//Counting the result
?>