Forum: PHP Jan 4th, 2009 |
| Replies: 7 Views: 384 Take the table out of the while loop.
Use the while loop to create your image array.
$i=0;
while ($rows = mysql_fetch_array ($Img_result, MYSQL_ASSOC))
{
$imageArray=$rows['filename'][$i};... |
Forum: PHP Jan 4th, 2009 |
| Replies: 7 Views: 384 The reason you are only showing one file over and over is due to this line:
$realname = $rows ['filename'];
You need to tell it to iterate through the results array. You should keep a counter... |
Forum: PHP Jan 3rd, 2009 |
| Replies: 7 Views: 384 Are you saying you want 3 images per table row?
If this is what you want to do, you may also want to change your limit on the query results to 6.
Then you would put your table creation inside of... |