0
How can I make pictures, I retrieved from the database to be on different rows....like 4 by 4 rows
<table> <?php { $getprofilequery = $projectconnection->prepare("SELECT * FROM infolist WHERE(name LIKE ? || city LIKE ? || path LIKE ?) && email != ?"); $getprofilequery->execute(array("%","%" ,"%",$_SESSION['loginemail'])); while($getprofilequeryval = $getprofilequery->fetch(PDO::FETCH_ASSOC)) { ?> <td> <div> <img style="width:150px; height: 150px;" src="<?php echo $getprofilequeryval['path']; ?>" alt="Photo" /> </div> </td> <?php } } ?>
1 ответ
+ 1
Hi Falodun Ebenezer Tosin have you solved this case yet? I have some questions.
What if the number of records are less than or greater than 16? you said you want it to be 4x4, 4 rows with 4 columns each, what if there was only 13? then there will be empty columns?, and what if there was 20?