This repository was archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.php
46 lines (39 loc) · 1.7 KB
/
help.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
<?php
include('SQLFunctions.php');
session_start();
$title = "SVBX - Help";
$link = f_sqlConnect();
include('filestart.php');
?>
<header class="container page-header">
<h1 class="display-3">Help</h1>
<p>If you are having difficulties with the database please contact one of the people below who have administrator rights,<br>otherwise email <a href="mailto:[email protected]?subject=SVBX Deficiency Database Issue" style='color:black'>Robert Burns</a> for assistance.</p>
</header>
<main class="container main-content">
<?php
$table = 'users_enc';
$sql = "SELECT firstname, lastname, Email FROM $table WHERE Role >= 40 ORDER BY lastname";
if($result = mysqli_query($link,$sql)) {
echo" <table class='table svbx-table'>
<tr class='svbx-tr'>
<th class='svbx-th'>First name</th>
<th class='svbx-th'>Last name</th>
<th class='svbx-th'>Email</th>
</tr>";
while ($row = mysqli_fetch_array($result)) {
echo "
<tr class='svbx-tr'>
<td class='svbx-td'>{$row[0]}</td>
<td class='svbx-td'>{$row[1]}</td>
<td class='svbx-td'><a href='mailto:{$row[2]}' style='color:black'>{$row[2]}</a></td>
</tr>";
}
}
echo "</table><br></main>";
mysqli_free_result($result);
if(mysqli_error($link)) {
echo '<br>Error: ' .mysqli_error($link);
} else //echo '<br>Success';
mysqli_close($link);
include('fileend.php')
?>