<!DOCTYPE html>
<?php include 'header.php'; ?>
<?php
$db=mysqli_connect("localhost","root","") or die ("Error Occures");
mysqli_select_db($db,"customer") or die("Error Occures");
$sql = "SELECT * FROM wellness";
$records = mysqli_query($db,$sql);
?>
<html lang="en" dir="ltr">
  <head>
    <link rel="stylesheet" href="css/homeStyle.css">
    <link rel="stylesheet" href="/css/card.css">
    <meta charset="utf-8">
    <title>Wellness</title>


  </head>
  <body>
    <br>
    <center>
    <h1>Wellness</h1>
    <div class="container" id="imageCon">
      <img class="slide" src="images/skin.jpg">
    </div>
  </center>
    <br>
    <?php
        $a = array();
        while ($data =  mysqli_fetch_assoc($records))
        {
            $a[] = $data;
        }
        foreach ($a as $item)

        {
    ?>

    <div class="card" style="box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);transition: 0.3s;width: 25%;float:left;">
      <img src=<?php echo "admin/action/images/".$item['Image'];?> alt="Image" style="width:100%;height:200px">
        <div class="container" id="cardid" style="padding: 2px 16px;">
          <center>
          <h4><b><?php echo $item['ItemName']; ?></b></h4>
          <center>
          <p><?php echo $item['Discription']; ?></p>
          <p><b>LKR </b><?php echo $item['Price']; ?></p>
        </center>
<<<<<<< HEAD
        <form class="" action="question.php" method="post">
            <input type="hidden" name="store" value="Wellness">
            <input type='hidden' name='itemname' value=<?php echo $item["ItemName"];?>>
            <input type='hidden' name='itemcode' value=<?php echo $item["ItemCode"];?>>
           <p><button tpe ="submit" id="footbut">Any Questions</button></p>
=======
        <form class="" action="index.html" method="post">
           <input type='hidden' name='id' value=<?php echo $item["ItemCode"];?>>
           <p><button id="footbut">Any Questions</button></p>
>>>>>>> 1717e532022095b00a00757d7711fb2c23830a94
         </form>
         <form class="" action="index.html" method="post">
          <input type='hidden' name='id' value=<?php echo $item["ItemCode"];?>>
          <p><button id="footbut">Quick Buy</button></p>
        </form>

      </div>
    </div>
    <?php
      }
    ?>
  <br>
  </body>
</html>
