PHP if !==
Go to solution
Solved by leonfagan71,
14 minutes ago, Joveice said:So I have this
if ($row['player1a'] !== '1') { header("Location: /error/"); exit(); }And the $row['player1a'] is 1 and this still triggers, I needed it to only trigger if $row['player1a'] wasent 1
what have I done wrong?
!== is checking for an exact match including value types.
!= is not equals.
== is equals to.
remove one of the = signs.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now