Right now i'm trying to build an online book store and for selling a book the user has to search by the Book title, ISBN and Author name , My Question is after the search result appears which is generated by a while loop how can i get the books Detail after the user clicked on Buy Button and Sale it?
Here is The SearchResult Code
if($searchID == 2)
{
$searchResult = mysqli_query($bookConn , "SELECT * FROM bookt WHERE request = 'Approved' AND bookTitle LIKE '%".$searchtext."%'" ) OR die();
while($row=mysqli_fetch_array($searchResult))
{
?>
<!-- Page Content -->
<div class="container" style="display:block;">
<hr>
<!-- /.row -->
<!-- Page Features -->
<div class="row text-center">
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="http://plnami.blob.core.windows.net/media/2015/02/books021715-800x500.jpg" alt="">
<div class="caption">
<h3>Book Title:<?php echo $row['bookTitle']; ?></h3>
<p>ISBN: <?php echo $row['ISBN']; ?></p>
<p>Publication Year<?php echo $row['bookPublicationYear']; ?> </p>
<p>Book Status:<?php echo $row['bookStatus']; ?></p>
<p>Book Price: <?php echo $row['bookPrice']; ?></p>
<p>
<a href="buyingProcess.php" class="btn btn-primary">Buy Now!</a>
</p>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<?php
}
}