-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewTables.php
More file actions
48 lines (39 loc) · 1.01 KB
/
viewTables.php
File metadata and controls
48 lines (39 loc) · 1.01 KB
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
require_once("DB.class.php");
if(isset($_POST['action'])){
if ($_POST['action'] == "viewUsers") { viewUsers(); }
if ($_POST['action'] == "viewVenue") { viewVenue(); }
if ($_POST['action'] == "viewEvent") { viewEvent(); viewAttendeeEvents();}
if ($_POST['action'] == "viewSessions") { viewSessions(); viewAttendeeSessions();}
}
function viewUsers() {
$db = new DB();
$string = $db->getAllUsersAsTable();
echo $string;
}
function viewVenue() {
$db = new DB();
$string = $db->getAllVenuesAsTable();
echo $string;
}
function viewEvent() {
$db = new DB();
$string = $db->getAllEventsAsTable();
echo $string;
}
function viewAttendeeEvents() {
$db = new DB();
$string = $db->getAllAttendeeEventsAsTable();
echo $string;
}
function viewSessions() {
$db = new DB();
$string = $db->getAllSessionsAsTable();
echo $string;
}
function viewAttendeeSessions() {
$db = new DB();
$string = $db->getAllAttendeeSessionsAsTable();
echo $string;
}
?>