It is part of a function inside a CFC. getThreadData is a cfquery and a <cfdump returns tha correct values.
I have also tries to put the second "set" in a separate "update query". Same Results. It looks like there is something wrong with #getThreadData.views# which nevertheless is returned properly by the <cfdump var query="#getThreadData ... >Is your getthreaddata.views variable inside of a cfoutput tag? > >William Seiter (mobile) > >Have you ever read a book that changed your life? >go to: http://www.winninginthemargins.com >and use passcode: GoldenGrove > >CF* and mySQL >This query works ok: > >update forums >set thrcount = thrcount-1, >where id = '#getThreadData.forumidfk#' > >If I add this other "set" : >, viewcount = viewcount - #getThreadData.views# > >I get that there is an error close to "where id = "...... > >- column viewcount exists >- #getThreadData.views# also exists and is numeric > >No more self-esteem. please help. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3560 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
