cvs: phpdoc /en/reference/mysql/functions mysql-fetch-object.xml

From: Date: Tue, 28 Sep 2004 15:23:31 +0000
Subject: cvs: phpdoc /en/reference/mysql/functions mysql-fetch-object.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364317@lists.php.net to get a copy of this message
dams Tue Sep 28 11:23:31 2004 EDT Modified files: /phpdoc/en/reference/mysql/functions mysql-fetch-object.xml Log: adding example tag http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml diff -u phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.9 phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.10 --- phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml:1.9 Fri Sep 10 04:26:44 2004 +++ phpdoc/en/reference/mysql/functions/mysql-fetch-object.xml Tue Sep 28 11:23:31 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-fetch-object"> <refnamediv> @@ -26,10 +26,14 @@ &database.field-case; &database.fetch-null; <para> + <example> + <title><function>mysql_fetch_object</function> example</title> <programlisting role="php"> <![CDATA[ <?php +$row = mysql_fetch_object($result); + /* this is valid */ echo $row->field; /* this is invalid */ @@ -37,7 +41,8 @@ ?> ]]> - </programlisting> + </programlisting> + </example> </para> <para> Speed-wise, the function is identical to

« previous php.doc (#969364317) next »