Hey CF People,
I am storing the current users id in a session variable using the following:
<cfset session.user_ID = #CurrentUser.User_ID#>
Now I am trying to write a query that uses that.
<CFQUERY NAME="GetUsers" DATASOURCE="DSN">
SELECT User_ID, FullName, Login
FROM Users
WHERE session.user_ID = #CurrentUser.User_ID#
ORDER BY Login
</CFQUERY>
Is it possible to use it, or am I just writing it wrong?
Thanks in advance!
Jeremy
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.