note 31517 deleted from function.mysql-stat by alindeman
| From: | alindeman@php.net | Date: | Sat, 17 May 2003 22:29:30 +0000 |
| Subject: | note 31517 deleted from function.mysql-stat by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48295@lists.php.net to get a copy of this message | ||
Note Submitter: tularis@php.net
----
a better function, which also imitated the return values of the official function would be:
function mysql_status {
$query = mysql_query('SHOW STATUS');
foreach($mysql_fetch_array($query) as $key=>$val){
$status[] = $key . ': ' . $val;
}
return $status;
}