I am looping through a query and I am wondering if there is a way to access data on the next row of the query I am looping through.
Heres some code:
Soooo... obviously this doesn't work in coldfusion but I was thinking there might be a way to access the next row and the value of a column in that next row, know of anything?
Heres some code:
Code:
<cfquery datasource="#ds#" name="myQRY">
SELECT pic_src FROM pics
WHERE pic_id = 2
</cfquery>
<cfoutput query="myQRY">
<cfif myQRY.row[thisRow + 1].pic_src IS "">
HELP ME!
</cfif>
</cfoutput>
Comment