note 31517 added to function.mysql-stat
| From: | tularis@php.net | Date: | Thu, 24 Apr 2003 18:09:33 +0000 |
| Subject: | note 31517 added to function.mysql-stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47038@lists.php.net to get a copy of this message | ||
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;
}
--
http://www.php.net/manual/en/function.mysql-stat.php
http://master.php.net/manage/user-notes.php?action=edit+31517
http://master.php.net/manage/user-notes.php?action=delete+31517
http://master.php.net/manage/user-notes.php?action=reject+31517