Welcome Guest, Not a member yet? Register   Sign In
proper use of two conditions in using sessions?
#1

[eluser]new_igniter[/eluser]
Hello,
Can anyone tell me the right syntax for using two conditions (in an if statement) while using CI sessions?

I tried:

if ($this->session->userdata('stat') != "OK" && $this->session->userdata('name') != "fred")
{
do something
}

this doesnt work and throws errors. My apologies in advance for being dumb.


Messages In This Thread
proper use of two conditions in using sessions? - by El Forum - 04-02-2008, 02:48 PM
proper use of two conditions in using sessions? - by El Forum - 04-02-2008, 03:20 PM
proper use of two conditions in using sessions? - by El Forum - 04-02-2008, 03:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB