|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-03 22:09 UTC] olivier at pipas dot org
[2005-06-03 22:15 UTC] olivier at pipas dot org
[2005-06-03 22:59 UTC] sniper@php.net
[2005-06-03 23:26 UTC] olivier at pipas dot org
[2005-06-04 01:07 UTC] sniper@php.net
[2005-06-04 09:59 UTC] olivier at pipas dot org
[2005-06-11 19:51 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 23:00:01 2025 UTC |
Description: ------------ I do a select in a db access (odbc), it return good number of rows but cannot show it Reproduce code: --------------- if(!$conn=odbc_connect("mydbodbc","user","pass")) exit("Error connect DB"); $sql="SELECT numcountry, namecountry FROM countries;"; if(!$res=odbc_exec($conn,$sql)) exit("Error syntax : $sql"); $i=0; while($restab=odbc_fetch_row($res)) { echo $restab; echo "$restab[0] $restab[1]<br>\n"; $i++; } echo $i; Expected result: ---------------- Array1 Belgium<br> Array2 France<br> Array3 Spain<br> 3 Actual result: -------------- 1 <br> 1 <br> 1 <br> 3