Hello, I am facing an issue with displaying images retrieved from the database. They are not showing in-line. I have tried to put the images from a URL, and they display in-line, but the problem persists with images from the database. Any suggestions on how to solve this problem? Thank you! The pictures from the database are not displaying correctly in-line. I have tried various solutions, but the issue persists. Below is the code snippet that I am using:
enter code here
<?php
include 'navbar.php';
require_once('admin/connect.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>Couture Collection</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<?php
include 'middle.php';
?>
<br>
<style type="text/css">
...
...
</style>
<?php
$sql = "SELECT * FROM products";
$records = mysqli_query($db,$sql);
while ($row = $records->fetch_assoc()) {
?>
<div class="hover02 column">
<div style="display: inline-block;">
<figure><img src=<?php echo $row['photo']; ?> style='display: inline-block;'/></figure>
<span><?php echo $row['name']; ?></span>
</div>
<br>
</div>
<?php
}
?>
<br>
<br>
<?php
include 'sale.php';
?>
<br>
<div class="hover02 column">
<div>
<figure><img src="http://nxworld.net/codepen/css-image-hover-effects/pic01.jpg" /></figure>
<span>Product1</span>
</div>
<div>
<figure><img src="http://nxworld.net/codepen/css-image-hover-effects/pic01.jpg" /></figure>
<span>Product2</span>
</div>
</div>
<br>
<br>
<footer>
<?php
include 'footer.php';
?>
</footer>
</body>
</html>