-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyamuna.php
More file actions
65 lines (61 loc) · 2.18 KB
/
yamuna.php
File metadata and controls
65 lines (61 loc) · 2.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YAMUNA</title>
<link rel="stylesheet" href="./yamuna.css">
<link rel="stylesheet" type="text/css" href="menu_style.css">
</head>
<body>
<div class="nav">
<ul style="list-style: none;">
<li id="logo"><img src="./images/logo.png" alt=""></li>
<li><a href="registration_form.php">Register</a></li>
<li><a href="login_form.php">Login</a></li>
<li><a href="./index.php">Home</a></li>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
</ul>
</div>
<div class="main">
<div class="info">
<br><br><br><br>
<h2>YAMUNA CANTEEN</h2>
<br>
<b>Location : Near the yamuna gate </b>
<br><br>
<b>Timing : Open from 11 am to 10 pm </b>
<br><br>
<div class="menu">
<?php
$server_NAME="localhost";
$admin_NAME="admin";
$password="localhost";
$database="first_DB";
$connect=mysqli_connect($server_NAME,$admin_NAME,$password,$database);
if(!$connect){
die('connection failed:'.mysql_error());
}
$feedback="SELECT * FROM menu_table
WHERE canteen='yamuna'";
$result=mysqli_query($connect,$feedback);
echo "<table class='table'><thead><th>S.No</th><th>Item</th><th>Price</th></thead><tr>";
while($row=mysqli_fetch_assoc($result)){
echo "<td>".$row['S.No']."</td><td>".$row['Item']."</td><td>".$row['Price'];
echo "</td></tr><tr>";
}
echo "</table>";
mysqli_close($connect);
?>
</div>
<div class="give-feed">
<br><br><br>
<span><a href="login_form.php">Give Feedback</a></span><br><br><br>
</div>
<br>
<div class="disp-feed">
<span><a href="y_d_feedback.php">See Feedbacks </a></span><br><br>
</div>
</div>
</body>
</html>