-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdown.php
159 lines (96 loc) · 3.59 KB
/
down.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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php session_start();
?>
<!--PABALLO MOLATI 1818416-->
<!DOCTYPE html>
<head>
<meta charset="uft-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title> Sk'haftine down town restauranr page </title>
<link rel="stylesheet" type="text/css" href="thestyle.css">
</head>
<body>
<div class="header">
<h1>SK'HAFTINI WEB APP</h1>
<ul>
<li><a class="active2" href="#">down town rastaurant </a></li>
<li><a href="food_site.php">rastaurants </a></li>
<li><a href="home_page.html"> Home </a></li>
<li><a href="c_log.html"> log in </a></li>
<li><a href="res__client.html"> register</a></li>
</ul>
</div>
<section>
<?php //$_SESSION["down"] = "down town restaurant";
//$_SESSION["vip"] = ".";
$_SESSION["restaurant_name"]="down town restaurant";
?>
<div class="form">
<table >
<form action="order.php" method="POST">
<h2>Please select an order name</h2>
<tr>
<td>
<?php
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "skhafthini";
$aVar = mysqli_connect($dbServername,$dbUsername,$dbPassword,$dbName);
$query = "select meal_picture from `meals` where meal_id = '2'";
$query_run = mysqli_query($aVar,$query);
while($row = mysqli_fetch_array($query_run))
{ ?>
<?php
echo ' <img src="data:image/jpg;base64,'.base64_encode($row['meal_picture']).'" alt="image" style="width:100px; height:100px;"/>'?>
<?php
}
?>
</td>
<td>
<?php
$query = "select meal_picture from `meals` where meal_id = '3'";
$query_run = mysqli_query($aVar,$query);
while($row = mysqli_fetch_array($query_run))
{ ?>
<?php
echo ' <img src="data:image/jpg;base64,'.base64_encode($row['meal_picture']).'" alt="image" style="width:100px; height:100px;"/>'?>
<?php
}
?>
</td>
<td>
<?php
$query = "select meal_picture from `meals` where meal_id = '4'";
$query_run = mysqli_query($aVar,$query);
while($row = mysqli_fetch_array($query_run))
{ ?>
<?php
echo ' <img src="data:image/jpg;base64,'.base64_encode($row['meal_picture']).'" alt="image" style="width:100px; height:100px;"/>'?>
<?php
}
?>
</td>
</tr>
<tr>
<td>
<input type="radio" name="food" value="CHEESE BOY BURGER,15" /> CHEESE BOY BURGER<BR>PRICE:M15.00</input>
</td>
<td>
<input type="radio" name="food" value="THE KINGS BURGER,20" >THE KINGS BURGER<BR>PRICE:M20.00 </input>
</td>
<td>
<input type="radio" name="food" value="REAL KIDS BURGER,10" >REAL KIDS BURGER<BR>PRICE:M10.00</input>
</td>
</tr>
<tr>
<td colspan="3"><button>Contiune</button> <button type="reset">Clear</button> </td>
</tr>
</form>
</table>
</div>
</section>
<footer>
<p>Copyright©:Sk'haftini Web App 2020 | Designed by Paballo Molati</p>
</footer>
</body>
</html>