Error is showing like thismy modal-content is working but the fetching data is not showing in the popup modal. please help me to solve the problem.
<?php
if(isset($_POST['mydonor_submit']))
{
$var = $_POST['bloodgroup2'];
$query = "select * from donate where
bloodgroup='$var'";
$result = mysqli_query($con,$query);
$row =
mysqli_fetch_array($result,MYSQLI_ASSOC);
}
?>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<p><label> Full Name :</label><?php echo $row['fullname'];?></p>
</div>
</div>
No error is showing