vendredi 28 mai 2021

how to display products to user pages using php?

how to make my product look good for example I want to make 3 images in 1 line,please help me to make the product look good enter image description here

<div class="row">
                <?php
                                            $get = $kon->query("SELECT * FROM product");?>
                                        <?php while($product = $get->fetch_assoc()){?>                       
                    <div class="card-body">
                            <div class="col-md-4">
                                <div class="card mb-4 product-wap rounded-0">
                                    <div class="card rounded-0">
                                        <div class="thumbnail">
                                        <img class="card-img rounded-0 img-fluid" src="Admin/img/<?php echo $product['img'];?>"/>
                                        <div class="card-img-overlay rounded-0 product-overlay d-flex align-items-center justify-content-center">
                                            <ul class="list-unstyled">
                                                <li><a class="btn btn-success text-white mt-2" href="shop-single.html"><i class="far fa-eye"></i></a></li>
                                                <li><a class="btn btn-success text-white mt-2" href="shop-single.html"><i class="fas fa-cart-plus"></i></a></li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="card-body">
                                        <a href="shop-single.html" class="h3 text-decoration-none"></a>
                                        <ul class="w-100 list-unstyled d-flex justify-content-between mb-0">
                                            <li><?php echo $product['Name'];?></li>
                                        </ul>
                                        <p class="text-center mb-0"><?php echo $product['Price'];?></p>
                                        <?php }?>



Aucun commentaire:

Enregistrer un commentaire