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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC