I'm creating a webshop sort of thing without paying. I want to create things like thumbnails, so you can see how a product is called and how it looks like. this is what the thumbnail looks like atm.
I use this code to create this:
<div class="product">
<?php
include 'assets/php_includes/db_connection.php';
$query = "SELECT * FROM artikelen";
$result = mysqli_query($DB_CONNECTION, $query);
if ($result === false) {
die(mysql_error());
}
while($artikel = mysqli_fetch_array($result)) {
if ($artikel['Ingeschakeld'] === 1) {
echo "" . $artikel['Naam'] . "<br>";
echo "" . $artikel['Prijs'] . "<br>";
echo "" . $artikel['Informatie'] . "<br>";
echo "" . $artikel['Ingeschakeld'] . "<br>";
} else {
echo "This article isn't available!";
}
}
?>
</div>
But all the different items come in 1 thumbnail. How would I make it so it would make multiple thumbnails with only 1 code like this?