D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
checkforpending.php
back
Copy
<?php if(isset($_POST['addsession'])){ $vinfe2=$_POST['session'] . "/" . $_POST['session2']; $vinfe=$_POST['session']; $vinfe=$vinfe-1; $vinfe=$vinfe . "/" . $_POST['session']; $sql="select * from sessions where session='".$vinfe."'"; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num<1){ /* if($vinfe2=='2017/2018'){ } else { $derror="You cannot create session $vinfe2 when the preceding session $vinfe has not been created!"; include('error1.php'); exit(); }*/ } } $sql="select * from sessions where status='editstu'"; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num>0){ $row=mysql_fetch_array($result); $statusjoy=$row['stage']; $sesjoy=$row['session']; $pp2=basename($_SERVER['PHP_SELF']); $pp4=$_SERVER['PHP_SELF']; $pp6=str_replace($pp2,"",$pp4); if($statusjoy==0){ $yy='http://result.dominicaninstitute.org/'.$pp6.'managestudents.php?returnstudent=' . $statusjoy . '&ses=' . $sesjoy; header('Location: ' . $yy); exit(); } else { $yy='http://result.dominicaninstitute.org/'.$pp6.'liststudentsassigned2.php?tab=' . $statusjoy . '&ses=' . $sesjoy; header('Location: ' . $yy); exit(); } } ?>