check if value is in database php code example Example: mysql check if value exists mysql> SELECT EXISTS(SELECT * from ExistsRowDemo WHERE ExistId=105);