variable and comparison operator problem[solved]
Posted: Sun Jan 14, 2007 3:48 pm
hey all,
so i am trying to do somthing like this
which evaluates true but i want to do
but it evaluates false
I have tried, with and without quotes, "or" instead of ||
and just about every thing else I can think of or read
just looking for direction
Thanks coolmoon
so i am trying to do somthing like this
Code: Select all
$_SESSION['c_name'] = "admin";
if ($_SESSION['c_name'] == 'admin')
{
redirect
}
else
{
redirect
{Code: Select all
if ($_SESSION['c_name'] == ('admin' || 'master'))
{
redirect
}
else
{
redirect
{I have tried, with and without quotes, "or" instead of ||
and just about every thing else I can think of or read
just looking for direction
Thanks coolmoon