didou Thu Jan 13 07:54:18 2005 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-field-flags.xml
Log:
fix example and use screen
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-field-flags.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-field-flags.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-field-flags.xml:1.4
phpdoc/en/reference/mysql/functions/mysql-field-flags.xml:1.5
--- phpdoc/en/reference/mysql/functions/mysql-field-flags.xml:1.4 Tue Sep
28 11:33:55 2004
+++ phpdoc/en/reference/mysql/functions/mysql-field-flags.xml Thu Jan 13
07:54:17 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.17 -->
<refentry id="function.mysql-field-flags">
<refnamediv>
@@ -40,13 +40,16 @@
echo 'Could not run query: ' . mysql_error();
exit;
}
-$flags = mysql_field_flags($result, 'id');
+$flags = mysql_field_flags($result, 0);
-print $flags;
+echo $flags;
print_r(explode(' ', $flags));
-
-/* Output will look similar to:
-
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
not_null primary_key auto_increment
Array
(
@@ -54,11 +57,9 @@
[1] => primary_key
[2] => auto_increment
)
-
-*/
?>
]]>
- </programlisting>
+ </screen>
</example>
</para>
<para>