-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.php
48 lines (40 loc) · 1.35 KB
/
student.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
include("db.php");
include("db_credentials.php");
// class Student {
// //properties
// private $first_name = "MO";
// private $last_name = "";
// private $date_of_birth = "";
// private $pretest_date = "";
// private $scheduled_test_date = "";
// private $tested_date = "";
// private $scheduled_screen_date = "";
// private $screened_date = "";
// private $scheduled_report_card_date = "";
// private $report_card_date = "";
// private $exit_date = "";
// //constructor
// // public function __construct($student_record)
// // {
// // print_r( $student_record );
// // echo "<br>";
// // echo this->$first_name;
// // // self::$first_name = $student_record['first_name'];
// // }
// //getters & setters
// };
// $aStudent = new Student($row);
// query student table
$sql = "
SELECT * FROM student WHERE exit_date IS NULL AND admin_id = 1
";
$results = db::execute($sql);
// $items = $results->fetch_assoc();
// while ($row = $results->fetch_assoc()) {
// print_r($row);
// echo "<br>";
// }
include 'home.php';