Guest_imported
New member
- Jan 1, 1970
- 0
Okay I'm looking for a solution to display the pictures bases on specified row and column,say 5 rows and 5 columns per page for my image gallery.I dunno how to make it since I'm using array to retrieve image stored in database.
Here's my dummy code causing weird output:
.......
........
...
while($i=mysql_fetch_array($result)){
for($row=0;$row<6;$row++){
print("<tr>"
for($column=0;$column<6;$column++){
print("<td>$i['image']</td>"
}
print("</tr>"
}
}
.....
.....
So, any solution for this? Shall I change my way of fetching image or what? Helps and
suggestions will be much appreciated. Again thank you very much.
Here's my dummy code causing weird output:
.......
........
...
while($i=mysql_fetch_array($result)){
for($row=0;$row<6;$row++){
print("<tr>"
for($column=0;$column<6;$column++){
print("<td>$i['image']</td>"
}
print("</tr>"
}
}
.....
.....
So, any solution for this? Shall I change my way of fetching image or what? Helps and
suggestions will be much appreciated. Again thank you very much.