I am running a query that checks id and zip to check for username/password
I can't seem to query the id field and set it as a seesion variable. If I use another column in the original query rather than id the process works fine?????????
<cfquery name="GetUser" datasource="mySource">
SELECT *
FROM myTable
WHERE id='#Form.id#' and zip='#Form.zip#'
</cfquery>
<!--- Check if we have a winner! --->
<cfif GetUser.RecordCount gt 0>
<!--- Store the user id in session variables and cookies. --->
<cfset Session.id = GetUser.id>
<cfcookie name="id" value="#GetUser.id#" expires="NEVER"> DeZiner
When the gears stop turning,
we all stop learning.
I can't seem to query the id field and set it as a seesion variable. If I use another column in the original query rather than id the process works fine?????????
<cfquery name="GetUser" datasource="mySource">
SELECT *
FROM myTable
WHERE id='#Form.id#' and zip='#Form.zip#'
</cfquery>
<!--- Check if we have a winner! --->
<cfif GetUser.RecordCount gt 0>
<!--- Store the user id in session variables and cookies. --->
<cfset Session.id = GetUser.id>
<cfcookie name="id" value="#GetUser.id#" expires="NEVER"> DeZiner

we all stop learning.