mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix example and use screen
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177119 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f9678a8a24
commit
767d318cb7
1 changed files with 10 additions and 9 deletions
|
@ -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 @@ if (!$result) {
|
|||
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 @@ Array
|
|||
[1] => primary_key
|
||||
[2] => auto_increment
|
||||
)
|
||||
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue