fetch body show in php code
$entityBody = file_get_contents('php://input');
fetch body show in php code
$entityBody = file_get_contents('php://input');
how to fetch data from database in php
<?php
//////neha jaiswal////
include 'config.php';////incluude data base connection file
$stmt = $conn->prepare('SELECT * FROM `product`');///select all data from database
$stmt->execute();////query execute ($stmt)
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()):
?>
<div class="card p-2 border-secondary mb-2">
<img src="<?= $row['product_image'] ?>" class="card-img-top" height="250">
<div class="card-body p-1">
<h4 class="card-title text-center text-info"><?= $row['product_name'] ?></h4>
<h5 class="card-text text-center text-danger"><i class="fas fa-rupee-sign"></i><?= number_format($row['product_price'],2) ?>/-</h5>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us