-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsave_recipe.php
43 lines (38 loc) · 1.43 KB
/
save_recipe.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
<?php
include('header.php');
include('Db_con.php');
error_reporting(0);
$id = $_SESSION['id'];
$sql = "SELECT * FROM `save_recipe` where uid = '$id'";
$result = mysqli_query($conn, $sql);
?>
<div class="wrapper">
<div class="header header-filter">
</div>
<div class="main main-raised">
<div class="section section-basic">
<div class="container">
<div class="row">
<div class="col-md-12"><br><br><br><br>
<?php
if (mysqli_num_rows($result)>0) {
while ($rs = mysqli_fetch_array($result)) {
$recipeName = $rs['recipe_name'];
$recipeLink = $rs['recipe_link'];
$image = $rs['image'];
echo "<div class='col-md-4'>";
echo "<div class='part-header'><a href='".$image."' data-toogle='tooltip' title='".$recipeName."'><b>".$recipeName."</b></a></div>";
echo '<img src="'.$image.'" width="335px" height="235px"><br><hr>';
echo "</div>";
}
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include('footer.php');
?>