Okay I'm looking for a solution to display the pictures bases on specified row and column,say 5 rows and 5 columns.
Here is my dummy code which gave me weird output.
......
......
for($row=0;$row<6;$row++){
print("<tr>");
while($i=mysql_fetch_array($result)){
for($column=0;$column<6;$column++){
print("<td>$i['image']</td>");
}
}
print("</tr>");
}
....
What I've got for the output is 5 different images, which each image is printed repeatly for 5 times at a single line.
I believe that the key problem is:
while($i=mysql_fetch_array($result))
since I'm using array to retrieve image.Helps and suggestions will be much appreciated.
Thank you very much.