From: [EMAIL PROTECTED] Operating system: Windows 2000 Professional PHP version: 4.1.2 PHP Bug Type: ODBC related Bug description: odbc_num_rows() returns last number of rows, no matter what result id is given
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 bug report at http://bugs.php.net/?id=16401&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16401&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16401&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16401&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16401&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16401&r=support Expected behavior: http://bugs.php.net/fix.php?id=16401&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16401&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16401&r=submittedtwice