|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33238 Bug select odbc_fetch_row
Submitted: 2005-06-03 22:05 UTC Modified: 2005-06-11 19:51 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: olivier at pipas dot org Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 5.*, 4.* (2005-06-04) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: olivier at pipas dot org
New email:
PHP Version: OS:


 [2005-06-03 22:05 UTC] olivier at pipas dot org
I do a select in a db access (odbc), it return good number of rows but cannot show it

Reproduce code:
	exit("Error connect DB");
$sql="SELECT numcountry, namecountry FROM countries;";
	exit("Error syntax : $sql");
	echo $restab;
	echo "$restab[0] $restab[1]<br>\n";
echo $i;

Expected result:
Array1 Belgium<br>
Array2 France<br>
Array3 Spain<br>

Actual result:
1 <br>
1 <br>
1 <br>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-03 22:09 UTC] olivier at pipas dot org
I use apache 2 and php as an Apache module
 [2005-06-03 22:15 UTC] olivier at pipas dot org
I have tested with odbc_fetch_object, and it's working ! 

So : it's a bug in function odbc_fetch_row
 [2005-06-03 22:59 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-06-03 23:26 UTC] olivier at pipas dot org
I have tried this version (5.0.5-dev) but the bug is always present.

This bug is also present in 5.0.0 and 4.3.11
 [2005-06-04 01:07 UTC]
And how can we reproduce this? (we need the db..)

 [2005-06-04 09:59 UTC] olivier at pipas dot org
Sorry, sorry

It's not a bug :

mysql_fetch_row return an array
pgsql_fetch_row return an array
mssql_fetch_row return an array
odbc_fetch_row return an boolean ! (why ???)

I must use odbc_result after...
 [2005-06-11 19:51 UTC]
Impossible to reproduce without a test case. 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 18 08:03:18 2022 UTC