php面向对象2

<form action="lianxi3.php" method="post">
<input type="submit" name="submit2" value="登录">
</form>
<?php
if(isset($_POST[‘submit‘])){
$huifu = $_POST[‘huifu‘];
$conn = mysql_connect("localhost","root","") or die("链接数据库失败");
mysql_select_db("xiangmu");
mysql_query("set names ‘utf8‘");
$sql = "INSERT INTO `huitie`(`id`, `huifren`, `huitie`, `fabiaohuifu`) VALUES (null,null,null,‘$huifu‘)";

mysql_query($sql);

}
?>

 

php面向对象2,布布扣,bubuko.com

php面向对象2

上一篇:【转】iOS开发UI篇—iPad和iPhone开发的比较


下一篇:在MyEclipse中如何去掉JS或jsp语法错误提示!