| 
        
            mysqli::$sqlstatemysqli_sqlstateReturns the SQLSTATE error from previous MySQL operation DescriptionObject oriented style string$mysqli->sqlstate; 
  Procedural style 
   string mysqli_sqlstate
    ( mysqli  
  $link
   )Returns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. The values are specified by ANSI SQL and ODBC. For a list of possible values, see » http://dev.mysql.com/doc/mysql/en/error-handling.html. 
 Parameters
 
 Return ValuesReturns a string containing the SQLSTATE error code for the last error. The error code consists of five characters. '00000' means no error. ExamplesExample #1 $mysqli->sqlstate example Object oriented style 
<?phpProcedural style 
<?phpThe above examples will output: Error - SQLSTATE 42S01. See Also
 
  |