-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (30 loc) · 934 Bytes
/
index.php
File metadata and controls
32 lines (30 loc) · 934 Bytes
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
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-wrapper">
<div class="search-container">
<?php
include_once 'includes/bookSearch-inc.php';
?>
<ul class="search-result">
<?php
//echo results as list elements
if($resultCheck > 0){
while ($rows = mysqli_fetch_assoc($result)){
echo
'<li><a href="book.php?bid=' . $rows['id'] . '">
<h3>' . $rows['name'] . '</h3>
<p>' . $rows['author'] . '</p>
<p>$' . $rows['price'] . '</p>
</a></li>';
}
}
?>
</ul>
</div>
</div>
</section>
<?php
include_once 'footer.php';
?>