mysqli接続前に以下コードを書いておく
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
error_reporting(E_ALL);
ini_set('display_errors',1);
//接続
$db = new mysqli($this->server, $this->user, $this->password, $this->dbname);
これでエラーが表示される
書いた人:おりゃー