When querying a postgre db, anyone know how to deal with it when zero rows are returned? resource: pg_query ([ resource $connection ], string $query ) As someone here http://se2.php.net/function.pg-query pointed out, "pg_query returns FALSE if the query can not be executed for some reason. If the query is executed but returns zero rows then you get back a result with no rows." - It does not return false when there are zero rows, so how do I catch it? Thanks and regards.