Right now i use this line to check against one or another condition, if one of them is true, people is redirected to infouser.php.
if ($_SESSION['companyname'] == 'Cemex Mexico' || $_SESSION['companyname'] == 'Cemex Central' ) {
// redirect to infouser.php
Question is, how do i add an AND constraint to first condition
Somethng like
if companyname == 'Cemex Mexico' and location == 'SPAIN' or companyname == 'Cemex Central' // redirect to infouser.php [/code]
in code it should look like
if ($_SESSION['companyname'] == 'Cemex Mexico' AND $_SESSION['location'] == 'SPAIN' || $_SESSION['companyname'] == 'Cemex Central' ) // redirect to infouser.php
[/code]
but im not even sure, so how do i write that correctly?
Thanks master yoda