-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
49 lines (45 loc) · 1.24 KB
/
index.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
49
<?php
/*********************************************
*? NAME : SanJeosutin
*? TITLE : index.php
*? DESCRIPTION : Main content of the web application.
*? CREATED ON : 24-09-2020
*? EDITED ON : 27-09-2020
*********************************************/
include("functions/header.php");
include("functions/functions.php");
$data = array();
?>
<table class="personalInfo">
<tr>
<th>Name </th>
<td>SanJeosutin</td>
</tr>
<tr>
<th>Student ID </th>
<td>*********</td>
</tr>
<tr>
<th>Email </th>
<td>*********@student.swin.edu.au</td>
</tr>
</table>
<p>
I declare that this assignment is my individual work.
I have not worked collaboratively nor have I copied from
any other student’s work or from any other source.
</p>
<?php
require_once("functions/settings.php");
if ($conn) {
require_once("functions/settings.php");
createTables($conn);
echo checkIfTableHasValue($conn);
} else {
$state = "error";
array_push($data, "No Connection to Database", "Please check that you have valid credential");
echo displayMessage($data, $state);
}
mysqli_close($conn);
include("functions/footer.php");
?>