|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24014 mssql_num_rows
Submitted: 2003-06-04 06:21 UTC Modified: 2003-06-04 23:01 UTC
From: huntertupa at hotmail dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.3.2 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: huntertupa at hotmail dot com
New email:
PHP Version: OS:


 [2003-06-04 06:21 UTC] huntertupa at hotmail dot com
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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-04 09:35 UTC]
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.
 [2003-06-04 23:01 UTC]
not bug -> bogus.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 14:01:31 2024 UTC