-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccd.php
61 lines (59 loc) · 1.37 KB
/
ccd.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
<!DOCTYPE html>
<html>
<body background="coffee.jpg">
<style>
div{
border:1px solid white;
border-radius:20px;
padding:20px;
}
</style>
<?php
ob_start();
$i=1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(4);
//$rest_id = 4;
$arr=array('coffee','tea','frappe','lemonade','sundae','smoothie','eats');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr,7,4);
/*$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);
if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
else
{echo "<br/>";}
for($i=0;$i<7;$i++){
$res=$con->query("select * from menu where res_id=4 and foodtype='$arr[$i]'");
echo "<br>";
$row=$res->fetch_assoc();?>
<div><strong>
<?php
echo $arr[$i]."<br/>";echo "<hr/>";
while($row)
{
?><form method="POST"><input type="number" name="<?php echo $row['srno']?>" min="0" max="50"><?php echo $row['item'].". . . . .Rs.".$row['price']."<br/><br/>";
$row=$res->fetch_assoc();
}?></strong>
</div><?php
}
*/?><br><br>
<input type="image" src="button.jpe" name='sub'>
<?php if(isset($_POST['sub_x'],$_POST['sub_y']))
{
//require 'menu.php';
//$menu_obj = new menu();
$menu_obj->select_item();
//include 'order.php';
//disp_order();
}
?></form>
</body>
</html>