|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24697 odbc can not return accurate result when we handle excel file use odbc
Submitted: 2003-07-17 20:50 UTC Modified: 2003-07-23 22:29 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tty3000 at hotmail dot com Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.3.2 OS: win 2000
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: tty3000 at hotmail dot com
New email:
PHP Version: OS:


 [2003-07-17 20:50 UTC] tty3000 at hotmail dot com
odbc can not return accurate result when we handle excel file use odbc.
In excel file,we handle "NUMBER" nor "VARCHAR" ,this question appear.
  we find ,this question appear when "0878-13420987" or "0878_13420987".

Reproduce code:
 	$user = '';
	$pass = '';
	$host = 'customerxls';
	//database name in excel file??[main],[con_data],[con_person],[detail_data]
	$dsn = "$phptype://$user:$pass@$host";
			$query="select a,b,d from $type";

    				$query_count="select count(*) from $type";  

	echo "<br>".$query."<br>";

		echo $title_array[$i]."\t";
	echo "<br>"; 

	while (@odbc_fetch_row($result)){  
		echo odbc_result($result,a)."<---->".odbc_result($result,b)."<---->".odbc_result($result,y)."<br>";
		//echo $row[0]."<br>";


Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-17 22:47 UTC]
I'm not quite sure I follow the bug you're reporting here.  Can you (with another ODBC application) get the results you're expecting?  I don't see how a query like that can fail as it's upto the logic of the backing DB and not PHP to return the result set.
 [2003-07-23 22:29 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 16 10:05:46 2022 UTC