-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.php
More file actions
52 lines (43 loc) · 1.4 KB
/
Copy pathMenu.php
File metadata and controls
52 lines (43 loc) · 1.4 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
<!DOCTYPE html>
<html>
<head>
<title>Bell la Bell la - Menu</title>
<link rel="stylesheet" type="text/css" href="/style/style.css">
<script type="text/javascript" src="/js/slideshow.js" defer></script>
</head>
<body id="bd">
<div id="container">
<h1 id="bigTitle">Bell la Bell la</h1>
<div id="top">
<img src="/imgs/meatballs.jpg" id="slideshow">
<nav>
<a href="home.php" id="rd">Home</a>
<a href="Menu.php" id="gr">Menu</a>
<a href="hours.php" id="wh">Hours</a>
</nav>
</div>
<div id="bottom">
<h2>Our Menu</h2>
<?php
include ('mysql_connect.php');
$conn = db_connect();
$sql= "Select name, price from menu";
$rows=$conn->query($sql);
foreach($rows as $row){
echo"Name = " .$row["name"]."\t". "Price = " .row["price"] . "<br />";
}
?>
</div>
<div id="submitSection">
<form name="myForm" action="projectForm.php" method="post" >
<span>Item Name: <input type="text" name="Name"> </span>
<span>Price: <input type="number" name="Price" min="0" max="999.99"> </span>
<br>
<br>
<input type="submit" name="submitBtn">
</form>
</div>
<div id="rights">No Rights Reserved</div>
</div>
</body>
</html>