HI Adam,

I'm still trying to digest that sql and visualize how that would work.

Alan,

No dice. that causes an internal server error, and wouldn't even show debug
info.

This got me closer, but it's still not quite working right.

I tried this as well, and it generated a Server 500 Error, too.

<cfset variables.hit[x] = variables.hit[x] + 1/>

Then I tried the following (both single and double qts)

<cfset variables.hit[x] = 'variables.hit[x] + 1'/>
<cfset variables.hit[x] = "variables.hit[x] + 1"/>

And it didn't error out, however, all the array values are being set to the
string

variables.hit[x] + 1

How else could I write this to generate the value and do the addition??

variables.hit[x] + 1/>

if hit[3] = 7

I'd want to do '7+1'

This part works - <cfset variables.hit[x] =

but its the

variables.hit[x] + 1/>

that is not working



On Thu, Feb 11, 2010 at 11:25 AM, Alan Holden <[email protected]> wrote:

> Try forcing it to numeric before performing math on it?
> <cfset hitcount[x] = val(hitcount[x])+1>
>
>
> --
> Open BlueDragon Public Mailing List
> http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
> mailing list - http://groups.google.com/group/openbd?hl=en
>
> !! save a network - please trim replies before posting !!
>

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to