之前的知识都复习了一遍
if(@$_POST['submit']){
$pw=$_POST["mm"];
$ty = $_POST["xm"];
$conn = mysql_connect("localhost","","") or die("链接数据库失败");
mysql_select_db("test");
mysql_query("set names 'utf8'");
$sql = "SELECT * FROM `ziliao`";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
}
?>