From:
Operating system: Windows 7
PHP version: 5.2.14
Package: ODBC related
Bug Type: Bug
Bug description:ODBC and Access request problem
Description:
------------
I'm working with a Access database (.mdb with Access 2003) and I use ODBC
to make requests and connection. I'm trying to list my users with a simple
SELECT * FROM T_Users, and show the result. I've 3 record in my table but
the request send me only the last 2 records.
Test script:
---------------
$sql_select_author = 'SELECT * FROM T_Users';
$req_select_author = odbc_exec($dbc, $sql_select_author);
$dat_select_author = odbc_fetch_array($req_select_author);
while( $data = odbc_fetch_array( $req_select_author ) )
{
echo $data['FirstName_Users'] .' '. $data['LastName_Users'];
}
Expected result:
----------------
ID - First Name - Last Name
1 - Monsieur - Admin
2 - Tartenpion - Maurice
3 - Dubosc - Franc
Actual result:
--------------
ID - First Name - Last Name
2 - Tartenpion - Maurice
3 - Dubosc - Franc
--
Edit bug report at http://bugs.php.net/bug.php?id=53032&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53032&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53032&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53032&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53032&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53032&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53032&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53032&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53032&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53032&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53032&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53032&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53032&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53032&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53032&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53032&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53032&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53032&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53032&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53032&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53032&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53032&r=mysqlcfg