I can't seem to figure out this simple issue.
Basically, I'm doing an integer validation to ensure a user does not exceed the range of a "BIGINT" for MYSQL.
As you know, the range of a BIGINT is:
-9223372036854775808 to 9223372036854775807
So, to test the validation, I used:
-9223372036854775809 and 9223372036854775808
The validation test is returning saying that it's valid...however, when I put an extra digit on the end of each number, it then becomes invalid.
Here's my code:
if ($data == "bigint" && ($value < -9223372036854775808 || $value > 9223372036854775807)) {
$error = true;
echo 4;
}