<cfif IsDefined('url.brain_drain')>
<cfset go_to = "CF-Talk">
<cfelse>
<cfset go_to = "">
</cfif>

I'm having a complete brain-stop here with CFregistry.  I have a Table of
values, and am trying to loop through a Registry Key based on a <cfoutput>
to match the values in the DB with some values in the Registry.  But it's
just not working.  The code is as follows:

<cfoutput query="findallrealms">

<cfregistry action="GetAll" branch="<key>\Basic\#Realm#\Users"  type="Any"
name="users" sort="Type ASC, Entry ASC">

<cfquery name="dumpusers" datasource="will">
INSERT into Users (User,Realm)
VALUES ('#users.Entry#','#Realm#')
</cfquery>

#users.Entry# - #Realm#<br>

</cfoutput>

The query "findallrealms" simply gets a list of Realms, then CFregistry is
meant to access each string in turn (which *all* exist) and go to "\users\",
then dump the values into a Database with the according Realm.  But for some
reason it's only Inserting one record per Realm when there should be lots
more.

Can anyone help my draining-brain?

Cheers

Will

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to