|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-24 06:13 UTC] tony2001@php.net
[2006-08-01 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
Description: ------------ I have a script connecting to a Sybase Adaptive Server Anywhere 9. I iterate through the resultset like this: while($row = odbc_fetch_array($res)) { ... } Sometimes when I try to fetch a large resultset the odbc_fetch_array returns false and the loop stops when there are more rows. The only way I can fetch all rows is to set the second argument to odbc_fetch_array where I force the function to fetch a specific row. To get the actual number of rows I have to run a sql and count the number of rows before I get the resultset. I'm not sure that this is a PHP problem, it could be the odbc driver or something else. But I don't know how to solve the problem or debug it further.