Location: PHPKode > projects > MyPHPSchool > MyPHPSchool-0.3.1/html/gradebook/dropclass.php
<?
//Basmati -- Version 2.0P
//Copyright 2000, James B. Bassett (hide@address.com)
//All rights reserved.  Please read enclosed license.
//Module:   dropclass.php

include("../main.inc.php");
list($ulvl, $loggedin) = check_auth();
	if(($ulvl < 25)){
		print_header("Error");
		echo "Sorry You Do Not have a High Enough User Level to use the Admin Pages.";
		print_footer();
		exit;
	}

  if ($dropid == "") {
    echo ("Nothing to delete!");
    exit;
  }
  $SchoolID = "Mead";
  $cc = $dropid;
  $query[0] = "DELETE from COURSEINFO where cc = '" . $cc . "' and schoolid = '" . $SchoolID . "';";
  $query[1] = "DELETE from GMSCORES where cc = '" . $cc . "' and schoolid = '" . $SchoolID . "';";
  

                                                                                                                                    
   $sql_result = mysql_query($query[0],$db);
   $sql_result = mysql_query($query[1],$db);
 
  

print_header("Gradebook:Delete");

 echo ("Your class ($cc) has been removed from the system.");

print_footer();
?>


              

Return current item: MyPHPSchool