junandya
Jan 1st 2008, 5:27 am
Hi all,
i have some problem with "show images". This is the field from table 'gallery',
id int(25)
imagePath varchar(250)
imageTitle varchar(250)
which is the image path taken from field 'imagePath', so i could be like this: <img src="imgGallery/<?PHP $row["imagePath"]; ?>">
The result that i want is like this, all images displayed in each row is 4 images:
<TABLE>
<TR>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/1.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 1</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/2.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 2</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/3.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 3</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/4.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 4</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/5.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 5</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/6.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 6</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/7.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 7</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/8.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 8</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
My question is how is the complete php script (also the query), so i can display the images as 4 images in a row, and 4 images again in next row...
Thank you
i have some problem with "show images". This is the field from table 'gallery',
id int(25)
imagePath varchar(250)
imageTitle varchar(250)
which is the image path taken from field 'imagePath', so i could be like this: <img src="imgGallery/<?PHP $row["imagePath"]; ?>">
The result that i want is like this, all images displayed in each row is 4 images:
<TABLE>
<TR>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/1.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 1</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/2.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 2</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/3.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 3</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/4.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 4</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/5.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 5</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/6.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 6</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/7.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 7</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE>
<TR>
<TD><img src="imgGallery/8.jpg"></TD>
</TR>
<TR>
<TD>tile: image number 8</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
My question is how is the complete php script (also the query), so i can display the images as 4 images in a row, and 4 images again in next row...
Thank you