I’m trying to create an ordering website and I want to link all products to be ordered to one page where the customer will need to fill in some form for delivery, displays the particular product details which the customer clicked on to order.
<?php session_start();
include("menucon.php");
$result = mysqli_query($conn,'SELECT * FROM appetizers WHERE id =
"'.$_GET['appetizers'].'"');
foreach ($rows as $row) ;
?>
this the product details page view
<section class="sec1">
<div class="p-img">
<h2 class=""><?php echo $result['food_name'];?></h2>
<img src="../images/<?php echo $result['newImageName'];?>" alt="">
</div>
<div class="p-desc">
<h5>WHAT TO EXPERT</h5>
<p><?php echo $result['description'];?></p></div>
</section>
This is for the page for all products to be ordered
<div class="col">
<div class="bx">
<img src="images/<?php echo $row1["newImageName"]; ?>" alt="">
<div>
<h3><?php echo $row1["food_name"]; ?></h3>
<h3> <s>GHC<?php echo $row1["discount"]; ?></s> GHC<?php echo
$row2["price"]; ?></h3>
<p class="desc" >
For Each
</p></div>
<a class="btn1" href="ord.html">ORDER</a>
</div>
</div>
<div class="col">
<div class="bx">
<img src="images/<?php echo $row2["newImageName"]; ?>" alt="">
<div>
<h3><?php echo $row2["food_name"]; ?></h3>
<h3> <s>GHC<?php echo $row2["discount"]; ?></s> GHC<?php echo
$row2["price"]; ?></h3>
<p class="desc" >
Full Set, Extra Cost For More
</p></div>
<a class="btn1" href="ord.html">ORDER</a>
</div>
</div>