that worked great. I had to fix a bunch of things but the concept was
right-on. and I was about to reply, "gosh darnit, I can't get it to do
anything..." but nope. Wonderful. I get it too. And nice to know about
columnlist. I had some code from someone else that did it my way and that's
why I was using it but it was very old code.
hey have a great weekend. I hope to.
> Another hint, when you run a <cfquery> tag in coldfusion, it returns a
> list of columns in #queryname.columnlist#.
>
> So to rewrite you code.
>
> <cfif structKeyExists(form,'project_category')>
> <cfset project_id = form[form.project_category])>
> <CFQUERY NAME="project_retrieval" DATASOURCE="dpch">
> SELECT *
> FROM empower_project_data
> WHERE project_id = #project_id#
> </CFQUERY>
> </cfif>
>
> <cfoutput query="dpch">
> <cfloop list="#dpch.columnlist#" index="col">
> #col#<br>
> <cfset session[col] = dpch[col][currentRow]>
> </cfloop>
> </cfoutput>
>
> Untested and just written in this e-mail, but this should be close to
> what I THINK you are trying to do.
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207900
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54