example "fix"

just to avoid the "ugly" layout at php.net/myslq_stat


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101301 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-10-25 12:35:17 +00:00
parent cde693d876
commit c33767ade3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
<refentry id="function.mysql-stat">
<refnamediv>
@ -30,7 +30,8 @@
<![CDATA[
<?php
$link = mysql_connect('localhost', "mysql_user", "mysql_password");
printf("%s\n", mysql_stat($link));
$status = explode(' ',mysql_stat($link));
print_r($status);
?>
]]>
</programlisting>
@ -38,8 +39,17 @@ printf("%s\n", mysql_stat($link));
The above example would produce the following output:
<screen>
<![CDATA[
Uptime: 5380 Threads: 1 Questions: 1321299 Slow queries: 1 Opens: 26 Flush tables: 1 Open tables: 17 Queries per second avg: 245.595
Array
(
[0] => Uptime: 5380
[1] => Threads: 2
[2] => Questions: 1321299
[3] => Slow queries: 0
[4] => Opens: 26
[5] => Flush tables: 1
[6] => Open tables: 17
[7] => Queries per second avg: 245.595
)
]]>
</screen>
</para>