| Server IP : 172.64.80.1 / Your IP : 172.71.120.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/admin_student/siwes/ |
Upload File : |
<?php
session_start();
$matNo=$_SESSION['matNo'];
require_once('../../connect.php');
extract($_POST);
$db=db_connect();
$eAddress = str_replace("'", "''", $eAddress);
$description = str_replace("'", "''", $description);
// $sql_a = $db->query("INSERT INTO `fedpoly`.`siwesconfirm` (`sn`, `matNo`, `secured`, `description`, `town1`, `town2`, `siwesDept`, `amtCollected`, `experience`, `lastPlacement`) VALUES (NULL, '', '', '', '', '', 'cv', '300', 'sd ewrew', 'a')");
// $result = mysql_query($sql);
// if ($sql_a) {
// header('location:siwesReference.php?id=2');
//}else {
$sql_b = $db->query("UPDATE `fedpoly`.`siwesconfirm` SET `siwesDept` = '$siwesDept', `amtCollected` = '$amtCollected', `experience` = '$experience', `lastPlacement` = '$lastPlacement' WHERE `siwesconfirm`.`matNo` = '$matNo'; ");
if ($sql_b) {
header('location:siwesEndProgram.php?id=1');
}else{
header('location:siwesEndProgram.php?id=3');
}
// }
?>