I have a code that is working to show images and description. But I am trying to get it to loop through 3 pictures wide, then loop again. and display them, I am going to add pagination to the script, but before i do that i need it to loop.
here is my script:
include ("lock.php");
$my_que[0] = mysqli_query($bd,"SELECT * FROM `products`");
for( $i = 0; $i < mysqli_num_rows( $my_que[0] ); $i++ )
{
$row = mysqli_fetch_array( $my_que[0] );
print '<div><img width="200" height="200" src="'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];.'admin/'. $row['path'] . '" / class="img-rounded">'.$row['description'].'</div><br>';
}