What I need to validated two conditions from my database.
The database is storing uniqueid and logmembername and I’m trying to compare that to the current $session and $membername.
Basically I don’t know how to write to if’s into one statement.
if ($uniqueid == ($session) || $logmembername == ($membername)) {
include("nav.php");
} else {
include("nonav.php");
}
I know this is wrong and very simple but I haven’t been at this long enough to figure it out. Thank you or any help.
The database is storing uniqueid and logmembername and I’m trying to compare that to the current $session and $membername.
Basically I don’t know how to write to if’s into one statement.
if ($uniqueid == ($session) || $logmembername == ($membername)) {
include("nav.php");
} else {
include("nonav.php");
}
I know this is wrong and very simple but I haven’t been at this long enough to figure it out. Thank you or any help.
