php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4634 win98/apache web server/php4 - odbc_num_rows still returns -1 in all cases
Submitted: 2000-05-27 07:53 UTC Modified: 2000-05-27 10:34 UTC
From: mrosario at eng dot usf dot edu Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.0 Release OS: Windows 98
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: mrosario at eng dot usf dot edu
New email:
PHP Version: OS:

 

 [2000-05-27 07:53 UTC] mrosario at eng dot usf dot edu
odbc_num_rows returns -1 in all cases;  I've tried it with a decent sized table that I knew was filled with at least ten records.  After doing the select query, odbc_num_rows still returns -1.  I was aware that this was a problem in PHP 3.0 and was hoping that it would be fixed in PHP4.0  .   I am using the default ini with standard configurations in the most stable version of Apache available.  I'm connecting to an Access 2000 database.  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-27 10:34 UTC] kara at cvs dot php dot net
As stated in the manual and various FAQs this is *not* 
PHP's fault. odbc_num_rows() returns the number of affected 
rows for insert/update statements. A few drivers also return 
the number of rows for selects.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 18:00:02 2026 UTC