note 31300 added to function.mysql-stat
| From: | adam at gotlinux dot us | Date: | Wed, 16 Apr 2003 18:35:41 +0000 |
| Subject: | note 31300 added to function.mysql-stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46701@lists.php.net to get a copy of this message | ||
because debian hasnt upgraded to php 4.3.0 i still don't yet have mysql_stat() (sometimes i
hate stability and security :-) so i hacked this... thought i would share it.
fuction mysql_status {
$result=mysql_query("show status");
while ($row=mysql_fetch_array($result)) {
$status[$row[Variable_name]]=$row[Value];
}
}
--
http://www.php.net/manual/en/function.mysql-stat.php
http://master.php.net/manage/user-notes.php?action=edit+31300
http://master.php.net/manage/user-notes.php?action=delete+31300
http://master.php.net/manage/user-notes.php?action=reject+31300