cj.php代码示例如下:
<?php$conn=@mysql_connect("数据库","帐号","密码") or die(mysql_error()); @mysql_select_db('数据表名',$conn) or die(mysql_error()); $sqlstr = "insert into 数据表名(xm,xxmc,zy,szd,qq,yx,tel,radio,bz) values('" .$_POST['xm']."','" .$_POST['xxmc']."','" .$_POST['zy']."','" .$_POST['szd']."','" .$_POST['qq']."','" .$_POST['yx']."','" .$_POST['tel']."','" .$_POST['radio']."','" .$_POST['bz']."')";mysql_query($sqlstr) or die(mysql_error());
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-