Name under image
Posted: Fri May 30, 2008 1:35 pm
Hello all,
i have a table with names of images stored in it. i made a code, that collects names of images and shows those images 3 in a row, but how could i made so that name of each image would be under every of them, as now i have name of each image after every image?
Anybody could help me with that, please?
i have a table with names of images stored in it. i made a code, that collects names of images and shows those images 3 in a row, but how could i made so that name of each image would be under every of them, as now i have name of each image after every image?
Anybody could help me with that, please?
Code: Select all
while ($row=mysql_fetch_assoc($result)){ ?>
<img src="<?php echo $row['image_name']; ?>.png"/>
<?php $row['image_name']; ?>
<?php
$i=$i+1;
if ($i>2){
echo "<br>";
$i=0;
}
}