";
$host="localhost";
$user="";
$password="";
$cxn = mysql_connect($host,$user,$password);
$sql="SHOW STATUS";
$result = mysql_query($sql);
if($result == false)
{
echo "Error: ".mysql_error($cxn)."
";
}
else
{
/* Table that displays the results */
echo "
Variable_name |
Value |
";
for($i = 0; $i < mysql_num_rows($result); $i++)
{
echo "";
$row_array = mysql_fetch_row($result);
for($j = 0;$j < mysql_num_fields($result);$j++)
{
echo "".$row_array[$j]." | \n";
}
}
echo "
";
}
?>