The mysqli_sql_exception class

(PHP 5, PHP 7)

Introducere

The mysqli exception handling class.

Sinopsisul clasei

mysqli_sql_exception extends RuntimeException {
/* Proprietăți */
protected string $sqlstate ;
/* Proprietăți moștenite */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
}

Proprietăți

sqlstate

The sql state with the error.

add a note add a note

User Contributed Notes 1 note

up
8
fibrizo dot raziel at gmail dot com
9 years ago
<?php  mysqli_report(MYSQLI_REPORT_STRICT) ?>
was not enough for me to enable exception throwing. I had to write this:
<?php mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); ?>
To Top