/
index.php
32 lines (31 loc) · 845 Bytes
/
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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
session_start();
require_once('Database.php');
?>
<html>
<head>
<meta charset="UTF-8">
<title>UR Hungry</title>
</head>
<body>
<?php
echo "Hi! Blah blah!";
print '<a href="event_submit_form.php">click me!</a>';
echo '<br />';
$ur = new Database();
$ur->db_connect();
$result = $ur->do_query('SELECT * FROM free_food_events');
while ($row = mysqli_fetch_array($result))
{
print $row['event_where'];
print '<br />';
}
?>
</body>
</html>