note 42956 added to function.odbc-fetch-array

From: Date: Fri, 04 Jun 2004 16:07:49 +0000
Subject: note 42956 added to function.odbc-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-70759@lists.php.net to get a copy of this message
It all seems so obvious now, but in case you're stuck on how to get the entire ODBC query into one array, instead of just one line, this will do the trick: <?php while(odbc_num_rows($myodbcexec)){ $myarray[] = odbc_fetch_array($myodbcexec); } ?> sina london ---- Manual Page -- http://www.php.net/manual/en/function.odbc-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42956 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42956&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42956&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70759) next »