mysqli_error
mysqli->error
Returns a string description of the last error
&reftitle.description;
Procedural style:
stringmysqli_error
mysqlilink
Object oriented style (property):
mysqli
stringerror
Returns the last error message for the most recent MySQLi function call
that can succeed or fail.
&reftitle.parameters;
&mysqli.link.description;
&reftitle.returnvalues;
A string that describes the error. An empty string if no error occurred.
&reftitle.examples;
Object oriented style
query("SET a=1")) {
printf("Errormessage: %s\n", $mysqli->error);
}
/* close connection */
$mysqli->close();
?>
]]>
Procedural style
]]>
&example.outputs;
&reftitle.seealso;
mysqli_connect_errno
mysqli_connect_error
mysqli_errno
mysqli_sqlstate