账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    为何这个alert出来的删除成功,还是乱码?
    33
    0
    <?php
    header("Content-type: text/html; charset=utf-8"); 
    require('conn.php');
    $id = intval($_GET['id']);
    $sql = "delete from lyb where ID = $id";
    if ($mysqli->query($sql) === true) {
        echo "<meta http-equiv='Content-Type'  content='text/html; charset=utf-8'>"; 
        echo "<script charset='utf-8' type='text/javascript'>alert('删除成功');location.href='5-6.php';</script>";
    } else {
        echo "删除失败" . $mysqli->error;
        echo  "<script>location.href='5-6.php'</script>";
    }
    $mysqli->close();
    ?>
    
    为何删除成功几个字,还是显示为乱码?
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 神都偏爱 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部