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.