php提交到数据库,提示增加成功。但是数据库里没有增加 50
<?phpif($_POST['bt']=="提交信息"){$yz_xm=$_POST['yz_xm'];$yz_lp=$_POST['yz_lp'];$yz_dz=$_...
<?php
if($_POST['bt']=="提交信息"){
$yz_xm=$_POST['yz_xm'];
$yz_lp=$_POST['yz_lp'];
$yz_dz=$_POST['yz_dz'];
$yz_ghs=$_POST['yz_ghs'];
$yz_sjh=$_POST['yz_sjh'];
$yz_scry=$_POST['yz_scry'];
$yz_sgjl=$_POST['yz_sgjl'];
$yz_jldh=$_POST['yz_jldh'];
$yz_kgsj=$_POST['yz_kgsj'];
$yz_jssj=$_POST['yz_jssj'];
$yz_zc=$_POST['yz_zc'];
$yz_tjsj=date("Y-m-d");
$sql="insert into jjh_yezhu(yz_xm,yz_lp,yz_dz,yz_ghs,yz_sjh,yz_scry,yz_sgjl,yz_jldh,yz_kgsj,yz_jssj,yz_tjsj,yz_zc) values ('.$yz_xm.','.$yz_lp.','.$yz_dz.','.$yz_ghs.','.$yz_sjh.','.$yz_scry.','.$yz_sgjl.','.$yz_jldh.','.$yz_kgsj.','.$yz_jssj.','.$yz_tjsj.','.$yz_zc.')";
mysql_query($sql);
mysql_close($conn);
echo "<script language=\"javascript\">alert('添加成功');location.href='jjh_yezhu.php'</script>";
}
?> 展开
if($_POST['bt']=="提交信息"){
$yz_xm=$_POST['yz_xm'];
$yz_lp=$_POST['yz_lp'];
$yz_dz=$_POST['yz_dz'];
$yz_ghs=$_POST['yz_ghs'];
$yz_sjh=$_POST['yz_sjh'];
$yz_scry=$_POST['yz_scry'];
$yz_sgjl=$_POST['yz_sgjl'];
$yz_jldh=$_POST['yz_jldh'];
$yz_kgsj=$_POST['yz_kgsj'];
$yz_jssj=$_POST['yz_jssj'];
$yz_zc=$_POST['yz_zc'];
$yz_tjsj=date("Y-m-d");
$sql="insert into jjh_yezhu(yz_xm,yz_lp,yz_dz,yz_ghs,yz_sjh,yz_scry,yz_sgjl,yz_jldh,yz_kgsj,yz_jssj,yz_tjsj,yz_zc) values ('.$yz_xm.','.$yz_lp.','.$yz_dz.','.$yz_ghs.','.$yz_sjh.','.$yz_scry.','.$yz_sgjl.','.$yz_jldh.','.$yz_kgsj.','.$yz_jssj.','.$yz_tjsj.','.$yz_zc.')";
mysql_query($sql);
mysql_close($conn);
echo "<script language=\"javascript\">alert('添加成功');location.href='jjh_yezhu.php'</script>";
}
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询