I am trying to create an image search but having a small issue. I think I'm brain dead lol What I'm wanting is a way to display images from my database in more than one column in my table without each column being a repeat of the other columns. I have a query that pulls the image filenames and displays 10 records at a time in one column. How do I display them say 5 images across by 10 images down? Here is my query and dynamic table at the moment.
Query:
<cfquery name="rsImages" datasource="rlbulbs">
SELECT rlbbulbs.image1
FROM rlbbulbs
</cfquery>
<cfset MaxRows_rsImages=10>
<cfset StartRow_rsImages=Min((PageNum_rsImages-1)*MaxRows_rsImages+1,Max(rsImages.RecordCount,1))>
<cfset EndRow_rsImages=Min(StartRow_rsImages+MaxRows_rsImages-1,rsImages.RecordCount)>
<cfset TotalPages_rsImages=Ceiling(rsImages.RecordCount/MaxRows_rsImages)>
Table:
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td>image1</td>
</tr>
<cfoutput query="rsImages" startRow="#StartRow_rsImages#" maxRows="#MaxRows_rsImages#">
<tr>
<td><a href="images/#rsImages.image1#" target="_blank"><img src="images/#rsImages.image1#" width="75" height="75"/></a></td>
</tr>
</cfoutput>
</table>
I dont mess with tables much except with displaying database stuff, so I'm drawing a blank here. Thanks for any help.