note 37102 added to function.mysql-stat
| From: | moelholt at e-mail dot dk | Date: | Mon, 03 Nov 2003 14:47:28 +0000 |
| Subject: | note 37102 added to function.mysql-stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59682@lists.php.net to get a copy of this message | ||
When i use "mysql_stat($handler);" do not get the result shown on this site. What am I
doing wrong?
MyCode:
$status = explode(' ', mysql_stat($handler));
$x=0;
while ($x<8)
{
echo ("$status[$x]<br>");
$x++;
}
The problem is with "$status[7]" it looks like this:
Open tables: 512 Queries per second avg: 100.345
When it should have been looking like this:
Open tables: 512 Queries per second avg: 100.345
In stead of two spaces between "512" and "Queries" it's got only one....
Please mail me with a solution, thanx.
Kristian
----
Manual Page -- http://www.php.net/manual/en/function.mysql-stat.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37102
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37102&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37102&report=yes
Search -- http://master.php.net/manage/user-notes.php