Hi all, i wonder is it possible to display my images from database into table with 4 rows and 4 column? How can i do that?
$dbConn = mysqli_connect(DBSERVER, DBUSER, DBPASS, DBNAME) or die(mysqli_connect_error());
$sql = "select * from products";
$result = mysqli_query($dbConn, $sql) or die(mysqli_error($dbConn));
echo "<table border = '1'>";
while($row = mysqli_fetch_array($result)){
echo "<tr>
<td><img src = 'images/" . $row['img'] . "' width = '200' alt = 'images'></td>
</tr>";
}
echo "</table>";