Hi. Is it ok to set certain application variables in application.cfm from
values stored in the database?
There are certain site-wide settings that I need to store in the database.
Then do this in the application.cfm file:

<CFIF NOT IsDefined Application.MySetting1>

<cfquery name="myquery" dsn="dsn">
Select Settings from db Where ....
</cfquery

<cfset Application.MySetting1 = myquery..MySetting1>

</CFIF>

My questions are:
1. Is it ok to set application variables using the above method?
2. If I need to update the above Application.MySetting1 variable to a new
value, how will I do so?

Thanks,

Ken.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237302
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

Reply via email to