Quantcast
Channel: little trouble with OR operator - Stack Overflow
Viewing all articles
Browse latest Browse all 6

little trouble with OR operator

$
0
0

i got into some trouble by using OR if one condition is true and the other false.in my constillation right now it is always only the second condition token.

if($num_rows === '0' OR $_GET['id'] !== $_SESSION['UserID']) { echo "show me something"; }else{ show nothing; }

i get only always 'show nothing'.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images