Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to List 1

Status
Not open for further replies.

minli98

IS-IT--Management
Aug 30, 2005
178
US
Hi,

Is there a function that automatically converts query results to a list? I thought I read somewhere that there is one, but couldn't find it now. Or do I need to use cfloop to append query results to the list one by one?

Code:
<cfquery name="getProductId">
  select productId
  from product
</cfquery>

<cfset x = QueryToList(getProductId.productId)> ???
Thank you in advance!

Regards,
Min
 
Hi Falconseye,

This is a new function for me, but I tried it and it works perfectly. Thank you very much!

Regards,
Min
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top