imstillatwork
IS-IT--Management
I ned to create a structure of table.ID and table.Name.
I know how structures work (I think), Now, How do I dynamicly create a structure from a query? I was hopeing it was this easy:::
==================
<cfquery name="getNameID" datasource="vwv">
SELECT UserName, UserID
FROM tblUsers
</cfquery>
<cfset stNameID = structNew()>
<cfoutput query="getNameID">
<cfset stNameID.#UserID# = #UserName#>
</cfoutput>
======================
But its not.....
I know how structures work (I think), Now, How do I dynamicly create a structure from a query? I was hopeing it was this easy:::
==================
<cfquery name="getNameID" datasource="vwv">
SELECT UserName, UserID
FROM tblUsers
</cfquery>
<cfset stNameID = structNew()>
<cfoutput query="getNameID">
<cfset stNameID.#UserID# = #UserName#>
</cfoutput>
======================
But its not.....