php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: huntertupa at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-06-04 06:21 UTC] 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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-04 09:35 UTC] fmk@php.net
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] sniper@php.net
not bug -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC