Fixes SQL query in example #2 of mysql_stat, fixes bug #43313

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292247 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jordi Boggiano 2009-12-17 12:10:36 +00:00
parent c1f984c21f
commit c83a8768d8

View file

@ -25,17 +25,17 @@
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns a string with the status for uptime, threads, queries, open tables,
flush tables and queries per second. For a complete list of other status
variables, you have to use the <literal>SHOW STATUS</literal> SQL command.
Returns a string with the status for uptime, threads, queries, open tables,
flush tables and queries per second. For a complete list of other status
variables, you have to use the <literal>SHOW STATUS</literal> SQL command.
If <parameter>link_identifier</parameter> is invalid, &null; is returned.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -75,7 +75,7 @@ Array
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$result = mysql_query('SHOW VARIABLES', $link);
$result = mysql_query('SHOW STATUS', $link);
while ($row = mysql_fetch_assoc($result)) {
echo $row['Variable_name'] . ' = ' . $row['Value'] . "\n";
}
@ -91,7 +91,7 @@ bdb_cache_size = 8388600
bdb_log_buffer_size = 32768
bdb_home = /var/db/mysql/
bdb_max_lock = 10000
bdb_logdir =
bdb_logdir =
bdb_shared_data = OFF
bdb_tmpdir = /var/tmp/
...