-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·38 lines (34 loc) · 1.48 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
<PHP> <title>Restaurant Management System</title>
<link rel="stylesheet" type="text/css" href="enjoy.css"></head> <PHP>
<div class="boxes">
<div class="box box1"></div>
<div class="box box2">
<a href="Chef.php">Chef page</a>
<a href="Customer.php">Customer page</a>
<a href="Delivery.php">Delivery Driver page</a>
<a href="Manager.php">Manager page</a>
</div>
<div class="box box3"></div>
</div>
<div class="description">
<h4>This is a group project for CPSC 304 to create a database with various
types of relations with a simple UI for interactivity.<h4>
</div>
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{"highlight":"#0000ff","nav":true,"resize":true,"toolbar":"zoom layers lightbox","edit":"_blank","url":"https://drive.google.com/uc?id=1Raa86s9VgAzLE14Y05EfJncJpZZCVBQJ&export=download"}"></div>
<script type="text/javascript" src="https://www.draw.io/embed2.js?&fetch=https%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D1Raa86s9VgAzLE14Y05EfJncJpZZCVBQJ%26export%3Ddownload"></script>
<!-- <?php
$conn = pg_pconnect("host=localhost port=5432 dbname=Andrew user=Andrew" );
if (!$conn) {
echo "An error occurred.\n";
exit;
}
$result = pg_query($conn, "SELECT * FROM orderhas");
if (!$result) {
echo "An error occurred.\n";
exit;
}
while ($row = pg_fetch_row($result)) {
echo "OrderID: $row[0] MenuItemID: $row[1]";
echo "<br />\n";
}
?> -->