Can i add
can i do this, cause its not going to the add.cfm
<!-- the part that i added --->
<cfif #session.userid# EQ "admin">
<cfinclude template="add.cfm">
</cfif>
<!-- ends here --->
<cfif #session.userid# EQ "max">
<cfquery name="table_member" datasource="stock">
SELECT *
FROM tblmember
</cfquery>
<cfelse>
<cfquery name="table_member" datasource="stock">
SELECT *
FROM tblmember
WHERE MemberName = '#session.userid#'
</cfquery>
</cfif>
what i want to do is , if admin logs in, i want him to go to a new page (the add.cfm page), the result i'm getting, as if that cfif statement deosn't exist, what am i doing wrong >?
Thanks for any input
Max Tadros
can i do this, cause its not going to the add.cfm
<!-- the part that i added --->
<cfif #session.userid# EQ "admin">
<cfinclude template="add.cfm">
</cfif>
<!-- ends here --->
<cfif #session.userid# EQ "max">
<cfquery name="table_member" datasource="stock">
SELECT *
FROM tblmember
</cfquery>
<cfelse>
<cfquery name="table_member" datasource="stock">
SELECT *
FROM tblmember
WHERE MemberName = '#session.userid#'
</cfquery>
</cfif>
what i want to do is , if admin logs in, i want him to go to a new page (the add.cfm page), the result i'm getting, as if that cfif statement deosn't exist, what am i doing wrong >?
Thanks for any input
Max Tadros