-
Notifications
You must be signed in to change notification settings - Fork 1
/
hello.php
131 lines (120 loc) · 3.4 KB
/
hello.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
<html>
<head><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="newStyle.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<center><img src="logo.png" ></center>
<nav class="navbar navbar-inverse bg-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand"> Recipe Hunt</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href='recipe.php' >Show all recipes</a></li>
</ul>
<ul class="nav navbar-nav ">
<li><a href='add.php' >Add New Recipe</a></li>
</ul>
</div>
</nav>
<br><br>
<?php
include('conn.php');
$query = "select * from receipe";
$rs = $conn->query($query);
$h=0;
if($rs){
?>
<div class="container-fluid">
<?php
while($fe=$rs->fetch_object()){
?>
<div class="row">
<div class="col-md-12">
<div class="row" style="border:1px solid black;">
<div class="col-md-6">
<div class="row">
<div class="col-md-12">
<br>
<img class="img-rounded" src="<?php echo $fe->imagesrc;?>" height="30%" width="30%">
<br>
</div>
</div>
<div class="row">
<div class="col-md-12">
<br>
<?php echo $fe->r_name;?>
<br>
</div>
</div>
<div class="row">
<div class="col-md-12" class="one" >
<br>
<?php echo $fe->ing;?>
<br>
</div>
</div>
<div class="row" class="one" >
<div class="col-md-12">
<br>
<?php echo $fe->STEPS;?>
<br>
</div>
</div>
</div>
<?php if($fe=$rs->fetch_object()) {?>
<div class="col-md-6">
<div class="row">
<div class="col-md-12">
<br>
<img class="img-rounded" src="<?php echo $fe->imagesrc;?>" height="30%" width="30%">
<br>
</div>
</div>
<div class="row">
<div class="col-md-12">
<br>
<?php echo $fe->r_name;?>
<br>
</div>
</div>
<div class="row">
<div class="col-md-12" class="one" >
<br>
<?php echo $fe->ing;?>
<br>
</div>
</div>
<div class="row">
<div class="col-md-12" class="one" >
<br>
<?php echo $fe->STEPS;?>
<br>
</div>
</div>
</div>
<?php }else{break;}?>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
</body>
</html>