note 31300 deleted from function.mysql-stat by alindeman
| From: | alindeman@php.net | Date: | Sat, 17 May 2003 22:29:56 +0000 |
| Subject: | note 31300 deleted from function.mysql-stat by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48296@lists.php.net to get a copy of this message | ||
Note Submitter: adam@gotlinux.us
----
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];
}
}