21.02.2012, 01:19
If you only need to detect one missing value and you know what it is, put this in your sql query string:
then check the amount of rows it returns with mysql_num_rows() function. If it's 0, then the value was not found.
Код:
SELECT `id` FROM `<your table name>` WHERE `id` = '<missing number>'