ID:               24014
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to