"Sticky", meaning that a variable holds the same value across multiple 
calls, because it's in the application scope, and therefore shared across 
all users of that application.

The 'arguments' scope should be used within the body of the function, not 
the CFARGUMENT tag. So, this is fine:

<cfargument name="placeholder" type="string" required="yes">
    <cfargument name="language" type="string" required="yes">

But then in the code, as I showed in my previous post, do this:

WHERE language = <cfqueryparam cfsqltype="cf_sql_varchar" 
value="#arguments.language#" />

Instead of ...

WHERE language = <cfqueryparam cfsqltype="cf_sql_varchar" 
value="#language#" />

Between that and using the 'var' flag on the variables that are internal to 
the function, as Brad noted, you should be in much better shape.
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323634
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to