MysqlndUhConnection::getSqlstate Returns the SQLSTATE error from previous MySQL operation &reftitle.description; public stringMysqlndUhConnection::getSqlstate mysqlnd_connectionconnection Returns the SQLSTATE error from previous MySQL operation. &reftitle.parameters; connection Mysqlnd connection handle. Do not modify! &reftitle.returnvalues; The SQLSTATE code. &reftitle.examples; <function>MysqlndUhConnection::getSqlstate</function> example sqlstate); $mysqli->query("AN_INVALID_REQUEST_TO_PROVOKE_AN_ERROR"); var_dump($mysqli->sqlstate); ?> ]]> &example.outputs; NULL, )) proxy::getSqlstate returns '00000' string(5) "00000" proxy::getSqlstate(array ( 0 => NULL, )) proxy::getSqlstate returns '42000' string(5) "42000" ]]> &reftitle.seealso; mysqlnd_uh_set_connection_proxy mysqli_sql_state