cvs: phpdoc-de /reference/oracle/functions ora-fetch-into.xml

From: Date: Sat, 17 Aug 2002 19:57:59 +0000
Subject: cvs: phpdoc-de /reference/oracle/functions ora-fetch-into.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-81@lists.php.net to get a copy of this message
samesch Sat Aug 17 15:57:59 2002 EDT Modified files: /phpdoc-de/reference/oracle/functions ora-fetch-into.xml Log: syncing with EN-Rev. 1.4 Index: phpdoc-de/reference/oracle/functions/ora-fetch-into.xml diff -u phpdoc-de/reference/oracle/functions/ora-fetch-into.xml:1.4 phpdoc-de/reference/oracle/functions/ora-fetch-into.xml:1.5 --- phpdoc-de/reference/oracle/functions/ora-fetch-into.xml:1.4 Sun Jun 9 06:56:02 2002 +++ phpdoc-de/reference/oracle/functions/ora-fetch-into.xml Sat Aug 17 15:57:59 2002 @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./de/functions/oracle.xml, last change in rev 1.2 --> <!-- last change to 'ora-fetch-into' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: samesch Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: samesch Status: ready --> <!-- OLD-Revision: 1.30/EN.1.2 --> <refentry id="function.ora-fetch-into"> <refnamediv> @@ -19,22 +19,33 @@ <methodparam choice="opt"><type>int</type><parameter>Flags</parameter></methodparam> </methodsynopsis> <para> - Mit dieser Funktion können sie einen Datensatz in ein Array - abrufen. + Ruft einen Datensatz in ein Array ab. Der Parameter + <parameter>flags</parameter> kann zwei Flag-Werte annehmen: ist + das <constant>ORA_FETCHINTO_NULLS</constant>-Flag gesetzt, werden + Felder mit dem Wert <constant>NULL</constant> im Array gesetzt; + ist das Flag <constant>ORA_FETCHINTO_ASSOC</constant> gesetzt, + wird ein assoziatives Array erzeugt. + </para> + <para> + Gibt die Anzahl der abgerufenen Felder zurück. + </para> + <para> <example> - <title>Oracle-Abruf in ein Array</title> + <title><function>ora_fetch_into()</function></title> <programlisting role="php"> <![CDATA[ <?php -array($ergebnisse); -ora_fetch_into($cursor, &$ergebnisse); +$ergebnisse = array(); +ora_fetch_into($cursor, $ergebnisse); echo $ergebnisse[0]; echo $ergebnisse[1]; +$ergebnisse = array(); +ora_fetch_into($cursor, $ergebnisse, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC); +echo $ergebnisse['MyColumn']; ?> ]]> </programlisting> </example> - Beachten Sie, dass Sie das Array als Verweis einbringen müssen. </para> <simpara> Siehe auch: <function>ora_parse</function>,

« previous php.doc.de (#81) next »