Hi,
Just wondering if my CFQUERYPARAM is correct... should I be also
putting cfqueryparam tags around the SET variables?
<!--- 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>
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?
<!--- get responses details --->
<cfquery name="FindMail" datasource="user020">
SELECT responseID, tbl_020publicResponses.profileID,
recipientUserID, senderUserID, senderScreenName, senderEmail,
responseSubject, responseText, responseDate, responseReadStatus,
userID, screenName
FROM tbl_020publicResponses, tbl_020publicProfiles
WHERE recipientUserID = <cfqueryparam
value='#client.KissMyDate_UserID#' cfsqltype="cf_sql_integer"
maxlength="4"> AND responseID = <cfqueryparam
value='#URL.viewResponseID#' cfsqltype="cf_sql_integer"
maxlength="4"> AND userID = tbl_020publicResponses.senderUserID
</cfquery>
Thanks,
Saturday
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:210617
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