|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 + 15 = ?
Subscribe to this entry?

 [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 23:01:27 2024 UTC