im catching the name of an user logged on $userrow['name'] and then im using if/else to compare to 2 strings
$user1 = "admin";
$user2 = "Gil";
if ($userrow['name'] == $user1 || $user2 ) {
echo "true";
}else{
echo "false";
}
in this case my $userrow['name'] its = "Andres" and obviously Andres != Gil || Admin
What i'm doining wrong?
sorry for my english :c
Aucun commentaire:
Enregistrer un commentaire