I'm trying to make a product view page and I have a problem. I cannot understand why does not show any products etc.
<?php
include("includes/db.php");
$result = mysqli_query($conn, "SELECT * FROM products");
while ($row = mysqli_fetch_array($result))
echo "<div class='row'>"; {
echo "<div class='col-lg-4 col-sm-6 portfolio-item'>";
echo "<div class='card h-100'>";
echo "<a href='#'><img class='card-img-top' src='" . $row['thumb'] . "' alt=''></a>";
echo "<div class='card-body'>";
echo "<h4 class='card-title'>";
echo "<a href='#'>" . $row['title'] . "</a>";
echo "</h4>";
echo "<p class='card-text'></p>";
}
echo "</div> </div> </div>";
mysqli_close($conn);
?>
Thats the php code, did I miss somewhere "
or '
? I still cannot understand where is the problem..