note 41889 added to function.mysql-stat
| From: | bigfoot at spido dot dk | Date: | Sat, 24 Apr 2004 21:56:29 +0000 |
| Subject: | note 41889 added to function.mysql-stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68746@lists.php.net to get a copy of this message | ||
After some test of the mysql_stat function, I have found a bug: In both version 4.3.6 and 4.3.4 i
can't explode the function as done in example 1. This problem can be resolved by adding a
str_replace fucntion adding another space in front of Queries...
<?
$mysql_stat = mysql_stat($connect);
$mysql_stat = str_replace("Queries"," Queries",$mysql_stat);
$mysql_stat = explode(" ",$mysql_stat);
print_r($mysql_stat);
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysql-stat.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41889
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41889&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41889&report=yes
Search -- http://master.php.net/manage/user-notes.php