php

 之前的知识都复习了一遍

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);
}
?>

posted @ 2014-05-09 19:13  三月迷离  阅读(83)  评论(0编辑  收藏  举报