Bug #16401 Updated: odbc_num_rows() returns last number of rows, no matter what result id is given

From: Date: Mon, 24 Jun 2002 20:50:55 +0000
Subject: Bug #16401 Updated: odbc_num_rows() returns last number of rows, no matter what result id is given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11967@lists.php.net to get a copy of this message
ID: 16401 Updated by: kalowsky@php.net Reported By: root@crackerz.org -Status: Open +Status: Closed Bug Type: ODBC related Operating System: Windows 2000 Professional PHP Version: 4.1.2 New Comment: Unable to reproduce this locally. Please note that odbc_num_rows on a SELECT will more than likely ALWAYS return a value of -1. This is the way the ODBC standard specifies this function work. Previous Comments: ------------------------------------------------------------------------ [2002-04-02 22:29:06] root@crackerz.org I access a mysql database using the odbc functions (i'm not using the mysql functions because it has to migrate to another database system later) first execute 2 select queryies: $result1 = odbc_exec($connection, $query1); $result2 = odbc_exec($connection, $query2); after this, even when the number of rows is not equal odbc_num_rows(result1) wil return the number of result2 The bug can be in : mysql, odbc-mysql driver or the php odbc function... i don't have a clue ;) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16401&edit=1

« previous php.bugs (#11967) next »