how to connent to a table in database and check for select an entry through php code example Example: php + get sql query echo $select->__toString();