note 14225 added to ref.odbc.php
| From: | dseidel at sylphen dot com | Date: | Mon, 23 Jul 2001 10:59:12 +0000 |
| Subject: | note 14225 added to ref.odbc.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15695@lists.php.net to get a copy of this message | ||
I have wrote an odbc_fetch_array-function. It works like the mysql_fetch_array-function.
The source:
/** the same like mysql_fetch_array for ODBC
* params : resultset
* return : assoziative array of actual row
* or false if no more entries
* author : Dierk Seidel (dseidel@sylphen.com), Sylphen.com KG, www.sylphen.com
* last modified : 23.07.2001
*/
function odbc_fetch_array($res) {
if(odbc_fetch_into($res, '', $ret)) {
while (list($key,$value)=@each($ret)) {
$arret[odbc_field_name($res, $key+1)] = $value;
}
return $arret;
} else return false;
}
http://www.php.net/manual/de/ref.odbc.php