Bug #53032 [Opn->Nab]: ODBC and Access request problem
| From: | cmb@php.net | Date: | Mon, 05 Oct 2020 08:47:54 +0000 |
| Subject: | Bug #53032 [Opn->Nab]: ODBC and Access request problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229383@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53032&edit=1
ID: 53032
Updated by: cmb@php.net
Reported by: david dot marandola at gmail dot com
Summary: ODBC and Access request problem
-Status: Open
+Status: Not a bug
Type: Bug
Package: ODBC related
Operating System: Windows 7
PHP Version: 5.2.14
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
$dat_select_author is ignored by the script.
Previous Comments:
------------------------------------------------------------------------
[2010-10-09 19:18:47] david dot marandola at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=53032&edit=1