note 41889 deleted from function.mysql-stat by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 21 Jul 2004 01:36:46 +0000 |
| Subject: | note 41889 deleted from function.mysql-stat by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73777@lists.php.net to get a copy of this message | ||
Note Submitter: bigfoot@spido.dk
----
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);
?>