I have a search page with check boxes. It sends a set of values to a results page.
On the results page I have:
<!---
<!--- create list from form entry --->
<CFSET ListStatus = FORM.CBox>
<!--- create empty list --->
<CFSET ListRecords = "">
<!--- loop through first list --->
<CFLOOP LIST="#ListStatus#" INDEX="i">
<!--- pull records --->
<CFQUERY NAME="RecordsetList" datasource="QBL">
SELECT ID
FROM tb_main2
WHERE ARStatus = '#i#'
</CFQUERY>
<!--- add results to second list --->?
<CFLOOP QUERY="RecordsetList">
<CFSET ListRecords = ListAppend(ListRecords, RecordSetList.ID)>
</CFLOOP>
</CFLOOP>
--->
When I do a cfdump of ListRecords I get: ? ? ? 23,30,26,32,28,34
What is up with the question marks? They are bad data and are messing up my further processing these results.
TIA!
Cheers,
Bluetone
On the results page I have:
<!---
<!--- create list from form entry --->
<CFSET ListStatus = FORM.CBox>
<!--- create empty list --->
<CFSET ListRecords = "">
<!--- loop through first list --->
<CFLOOP LIST="#ListStatus#" INDEX="i">
<!--- pull records --->
<CFQUERY NAME="RecordsetList" datasource="QBL">
SELECT ID
FROM tb_main2
WHERE ARStatus = '#i#'
</CFQUERY>
<!--- add results to second list --->?
<CFLOOP QUERY="RecordsetList">
<CFSET ListRecords = ListAppend(ListRecords, RecordSetList.ID)>
</CFLOOP>
</CFLOOP>
--->
When I do a cfdump of ListRecords I get: ? ? ? 23,30,26,32,28,34
What is up with the question marks? They are bad data and are messing up my further processing these results.
TIA!
Cheers,
Bluetone