#24014 [Opn->Csd]: mssql_num_rows
| From: | fmk@php.net | Date: | Wed, 04 Jun 2003 14:35:33 +0000 |
| Subject: | #24014 [Opn->Csd]: mssql_num_rows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41140@lists.php.net to get a copy of this message | ||
ID: 24014
Updated by: fmk@php.net
Reported By: huntertupa at hotmail dot com
-Status: Open
+Status: Closed
Bug Type: MSSQL related
Operating System: FreeBSD
PHP Version: 4.3.2
New Comment:
You are not using the MSSQL extension, but Sybase.
When you calle sybase_query (or use the alias for this function;
mssql_query) you should check the return value before calling other
functions. This function can return true, false or a result resource.
If you want tu use the mssql extension you should compile using
--with-mssql.
Previous Comments:
------------------------------------------------------------------------
[2003-06-04 06:21:35] huntertupa at hotmail dot com
Hello!
I´m using PHP 4.3.2 in a FreeBSD Server with FreeTDS to connect a MSSQL
Server in a Win2k.
When I do a SELECT that returns some rows it works fine.
But when the SELECT doesn´t returns any rows I have this error:
Warning: mssql_num_rows(): supplied argument is not a valid
Sybase-result resource in /var/html/teste.php on line 7
What does it can be?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24014&edit=1