macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: Adding database columns in Coldfusion

Subject: Re: Adding database columns in Coldfusion
From: GArlington <garlington@xxxxxxxxxxxxx>
Date: Thu, 24 Jul 2008 08:28:50 -0700 (PDT)
Newsgroups: macromedia.coldfusion.getting_started

On Jul 23, 8:56 pm, "freedomflyer" <webforumsu...@xxxxxxxxxxxxxx>
wrote:
> That works...well...great! Thanks so much!
>  Just a couple of questions....
>
>  1) I thought I had to externally concatenate the strings by using "&"
>  ...It almost seems like
>  #myLongList.aVarchar#-#myLongList.bVarchar#-#myLongList.int#
>  would attempt to subtract values.
It will depend on how you use the above statement. Try the following:
1) <cfset res2 = var1 - var2 />
2) <cfset res3 = #var1# - #var2# />
3) <cfset res4 = "#var1# - #var2#" />
There are (subtle) differences between the above, but look at the code
and you will see why the results are different...
> (And yet it works...) So why does this
> happen? Is it not possible to put a value of, say, 5-3 in the option tags and
> have it display "2" as the option?
>
>  2) I noticed the <cfoutput/> tags sandwiching my option tags. Does this mean
> that HTML and CF are both very easily intermeshed?
Yes, you can include html directly IN your cfm...
>
>  Thank you again, so much, for your help.


<Prev in Thread] Current Thread [Next in Thread>