note 53698 added to function.oci-fetch-array

From: Date: Thu, 09 Jun 2005 15:13:44 +0000
Subject: note 53698 added to function.oci-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-90177@lists.php.net to get a copy of this message
OCI_BOTH is the default. If you just need to return all fields, you can leave out OCI_NUM & OCI_ASSOC. EXAMPLE: <?php $connection = ocilogon("user", "password", "dbname"); $query = "SELECT id, name, lob_field FROM fruits"; $statement = oci_parse ($connection, $query); oci_execute ($statement); while ($row = oci_fetch_array ($statement)) { $id = $row['ID']; $name = $row['NAME']; $lob_field = $row['LOB_FIELD']; echo $id.' '.$name.' '.$lob_field; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.oci-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53698 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53698&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53698&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53698&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53698&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53698&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53698&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90177) next »