note 37102 rejected from function.mysql-stat by didou
| From: | didou@php.net | Date: | Mon, 03 Nov 2003 14:55:20 +0000 |
| Subject: | note 37102 rejected from function.mysql-stat by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59683@lists.php.net to get a copy of this message | ||
Note Submitter: moelholt@e-mail.dk
----
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