<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GB18030" >
<title></title>
<style type="text/css">
table
{
margin:auto auto;
width:80%;
border-collapse:collapse;
}
table td
{
border:1px solid #82C4E8;
word-wrap: break-word;
word-break: break-all;
}
thead th,thead td
{
background-color:#D7F5F9;
}
</style>
</head>
<body>
<table>
<thead>
<tr><td>变量名</td><td>值</td></tr>
</thead>
<tbody>
<?php
mysql_connect('localhost','root','');
$rs=mysql_query("show variables;");
while($r=mysql_fetch_array($rs))
{
?>
<tr>
<td><?=$r['Variable_name']?></td>
<td><?=$r['Value']?></td>
</tr>
<?
}
?>
</tbody>
</table>
</body>
</html>