dongqie4402 2014-10-30 20:28
浏览 55

致命错误:未捕获的异常“异常”,消息为“1048”

So I want to insert a new user in my db, but when I want to post my registration, this error pops up:

Fatal error: Uncaught exception 'Exception' with message '1048' in 
C:\xampp\htdocs\Zephryte\app\classes\users.class.php:110 Stack trace: #0 
C:\xampp\htdocs\Zephryte\index.php(5): users->register() #1 {main} thrown in 
C:\xampp\htdocs\Zephryte\app\classes\users.class.php on line 110

I do know that this comes from my MySQLi connection, but I don't know what it means or what to do with it...

This is the code that produces the error:

$query->bind_param('ssssssssssssssssssssss', $data, $_POST['username'], $_POST['password'], $een, $_POST['email'], $code, $ipAddress, $ipAddress, $data, $data, $een, $null, $null, $nul, $nul, $een, $een, $nul, $_POST['skype'], $nul, $nul, $null); //106

$query->execute(); //107

if (!$query->execute()) //108

{ //109

    throw new Exception($this->db->conn->errno, 1); //110

} //111

$query->close(); //112

Does anyone of you guys know what the error is, and how to solve it?

Thanks.

  • 写回答

2条回答 默认 最新

  • dpde7365 2014-10-30 20:33
    关注

    Your query is failing because you missed one of the columns off.

    I couldn't say which was missing but

    http://php.net/manual/en/mysqli.error.php

    Will give more info

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分