PDO, PHP, MySQL. Any request for example:
SELECT COUNT(*) FROM `table` WHERE id=1
Returns for example:
Please note that 1 is a string and not a number. We have to keep in mind and more or to make an inaccurate comparison == what are fraught or ==='1' or insert a conversion to number that is not humane. It is possible to do something and what do you do in such cases?