> <!--- update user details to DB ---> > <CFQUERY NAME="UpdateUserDetails" > datasource="user020"> > UPDATE tbl_020publicUsers > SET lastLogin = #UKTodayDate#, > daysVisited = > #GetUser.daysVisited# > WHERE userID = <cfqueryparam > value='#Client.KissMyDate_UserID#' > cfsqltype="cf_sql_integer" > maxlength="4"> > </CFQUERY>
You should queryparam each of the columns being set... > Also, when I am checking a db field against another table > like below > (AND userID = tbl_020publicResponses.senderUserID) should > I use a cfqueryparam in that? No joins to other tables don't use bind variables. You would only need a queryparam if you needed an outer join with a CF variable in it, i.e. LEFT JOIN table2 on (table2.x = table1.x and table2.y = #url.y#) url.y should be wrapped in a cfqueryparam in this example s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210625 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

