note 49802 added to function.mysql-stat

From: Date: Wed, 09 Feb 2005 02:16:58 +0000
Subject: note 49802 added to function.mysql-stat
Groups: php.notes 
Request: Send a blank email to php-notes+get-84698@lists.php.net to get a copy of this message
if you need the complete status as outputted by the "show status" command. Try this function. <? function mysql_status($db=NULL) { if(!mysql_ping($db)) $db=mysql_connect("localhost","user","password"); $res=mysql_query("show status",$db); while (list($key,$value)=mysql_fetch_array($res)) $sql[$key]=$value; return $sql; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-stat.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49802 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49802&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49802&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49802&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49802&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49802&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49802&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84698) next »