热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_45799813
weixin_45799813
6 年前
trueweixin_45799813

7-2 点赞(20 分)

CSDN App 扫码分享
分享
评论
2
打赏
  • 复制链接
  • 举报
下一条:
<?phpinclude_once("conn/conn.php");if(isset($_POST['a_id'],$_POST['a_name'],$_POST['b_pays'],$_POST['b_address'],$_POST['b_time'])){ if (!($_POST['a_id'] and $_POST['a_name'] and $_POST['b_pays'] and $_POST['b_address'] and $_POST['b_time'])){ echo "输入不允许为空。点击<a href='javascript:onclick=history.go(-1)'>这里</a> 返回";}else{ $sqlstr1 = "insert into ab values('','".$_POST['a_id']."','".$_POST['a_name']."','".$_POST['b_pays']."','".$_POST['b_address']."','".$_POST['b_time']."')"; $result = mysqli_query($conn,$sqlstr1); if ($result){ echo "添加成功,点击<a href='select.php'>这里</a>查看"; }else{ echo "<script>alert('添加失败');history.go(-1);</script>"; }}}?>求大佬解答哪里有错误,一直添加失败,要哭了
立即登录