> to do with one of the field's in my recordset that was generated
> with <CFQUERY>. One of the fields was called "URL" because it
> holds the URL of a web page that needs to get used on the front
> end.
>
> The following code fails in CFMX. Looking at it, I can't think
> of a reason why this code would fail. Clearly, this code is not
> useful but it shouldn't bomb.
> -----------
> <cfquery name="bling" datasource="hooha">
> select 'http://neverlandranch.foo' as URL
> </cfquery>
> <cfoutput query="bling">
> #urldecode("michael jackson")#
> </cfoutput>
> -----------
"URL" is a reserved word in CFMX, as it refers to a variable (the URL
scope). It's always a really bad idea to use words in programs when those
words have any significance within that programming language, even if the
language allows it.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

