note 110990 added to function.odbc-fetch-array

From: Date: Thu, 03 Jan 2013 14:22:16 +0000
Subject: note 110990 added to function.odbc-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-192744@lists.php.net to get a copy of this message
code by armando dot ortiz at cppcorp dot com2 is expected to fetch every other record, because in every iteration it fetches 2 rows - one by odbc_fetch_row, another by odbc_fetch_array. If you intend to use odbc_fetch_row, it would be like: while( odbc_fetch_row( $myResultID ) ) { $ResColumn1 = odbc_result($myResultID, "column1"); ... $ResColumnN = odbc_result($myResultID, "columnN"); } ---- Server IP: 69.147.83.199 Probable Submitter: 65.93.208.253 ---- Manual Page -- http://php.net/manual/en/function.odbc-fetch-array.php Edit -- https://master.php.net/note/edit/110990 Del: integrated -- https://master.php.net/note/delete/110990/integrated Del: useless -- https://master.php.net/note/delete/110990/useless Del: bad code -- https://master.php.net/note/delete/110990/bad+code Del: spam -- https://master.php.net/note/delete/110990/spam Del: non-english -- https://master.php.net/note/delete/110990/non-english Del: in docs -- https://master.php.net/note/delete/110990/in+docs Del: other reasons-- https://master.php.net/note/delete/110990 Reject -- https://master.php.net/note/reject/110990 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192744) next »