For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2004 > cvs: phpdoc /en/reference/mysql/functions mysql-fetch-object.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2004-09-28, 4:01 pm

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/....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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com