mssql_query, sybase_query
| From: | Bradley Bell | Date: | Wed, 12 Dec 2001 22:47:24 +0000 |
| Subject: | mssql_query, sybase_query | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14979@lists.php.net to get a copy of this message | ||
Is it just me, or is the documentation for these two functions totally wrong?
They are sopposed to return int values, either a "result identifier", or 0,
if the query fails.
However, it looks to me like it always returns a string. If the query
returns data (i.e. a SELECT query), then it returns something like
"Resource id #2". If the query doesn't return anything (i.e. an INSERT or
whatever), or if it fails, it returns an empty string.
So, how does one tell the difference between a failed query and a query with
no results?
-brad
P.S. Which one is broken, the docs or the implementation, and are they going
to be fixed?
--
Bradley Bell
Computer Support Analyst
University of Washington
Classroom Support Services