D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
newsession.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheduresult2018byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php if(isset($_POST['doneallstudent'])){ ?> <?php if(isset($_POST['doneallstudent'])) { $natasession=$_POST['ses']; $sql1="delete from studentsexisting where session='$natasession'"; if (!mysql_query($sql1)){ echo("Unable to delete from studentsexisting: " . mysql_error()); exit(); } $sql1="insert into studentsexisting (matric,programmesn,yearofentry,archived,session,level,status,de) select matric,programmesn,yearofentry,archived,session,level,status,de from tempstudents"; if (!mysql_query($sql1)){ echo("Unable to populate studentsexisting: " . mysql_error()); exit(); } $sql = "update sessions set stage=2,status='opened' where session='$natasession'"; $result = mysql_query($sql, $csn); $bb="Session $natasession has been successfully created!"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php include("head.php"); ?> </head> <body> <?php include("top.php"); ?> <?php include("dtable0.php"); ?> <?php include("nav.php"); ?> <?php include("dtable1.php"); ?> <?php include("topcontainer.php"); ?> <!--Content Goes Here--> <div class="headingbiggest">Session <?php echo($natasession); ?> Successfully Created</div> <span style="color:#000000"><b><?php echo($bb); ?></b></span> <hr /> <div class="post"> <p style="color:#000000"> </p> <a href="dadmin.php">Go to Admin Page</a> </div><div class="post-bot"></div> <!--Content Ends Here--> <?php include("bottomcontainer.php"); ?> <?php include("dtable2.php"); ?> <?php include("side.php"); ?> <?php include("dtable3.php"); ?> <?php include("foot.php"); ?> </body> </html> <?php } else { include("dadmin.php"); } ?> <?php } else { include("ddadmin.php"); }?>