note 24291 added to ref.odbc

From: Date: Mon, 12 Aug 2002 12:59:02 +0000
Subject: note 24291 added to ref.odbc
Groups: php.notes 
Request: Send a blank email to php-notes+get-34850@lists.php.net to get a copy of this message
another fetch array acts the same as mysql_fetch_array, but make a numeric array ODBCDATA[0]; ODBCDATA[1]; ODBCDATA[2]; and an associative array ODBCDATA["field1"]; ODBCDATA["field2"]; ODBCDATA["field3"]; I am sure people could inprive on this: function odbc_fetch_array($R) { $FR = odbc_fetch_row($R); for ($i = 1;$i <= odbc_num_fields($R);$i++) { $FN = odbc_field_name($R,$i); $FV = odbc_result($R,$i); $RA[$FN] = $FV; $RA[$i-1] = $FV; } if ($FR == false)return false; return $RA; } -- http://www.php.net/manual/en/ref.odbc.php http://master.php.net/manage/user-notes.php?action=edit+24291 http://master.php.net/manage/user-notes.php?action=delete+24291 http://master.php.net/manage/user-notes.php?action=reject+24291

« previous php.notes (#34850) next »