I have a table with this structure:
+----+-----------+
| id | user_pass |
+----+-----------+
| 1 | 01 |
| 2 | 10 |
+----+-----------+
And here is my query:
SELECT COUNT(*) FROM users WHERE user_pass = '$pass' limit 1
The problem:
$pass = '10'; // output: 1
$pass = '01'; // output: 0
while both values 10
and 01
are exist in the table, Why the output is different for each of them ?
Here is a fiddle.