PYTHON mysqli->connect_error

Python replacement for PHP's mysqli->connect_error [ edit ]

Do you know a Python replacement for PHP's mysqli->connect_error ? Write it!

PHP mysqli->connect_error

PHP original manual for mysqli->connect_error [ show | ]



(PHP 5)

mysqli->connect_error -- mysqli_connect_errorReturns a string description of the last connect error


string $connect_error;
string mysqli_connect_error ( void )

Returns the last error message string from the last call to mysqli_connect().

Return Values

A string that describes the error. An empty string if no error occurred.


Example #1 mysqli_connect_error() example


= @mysqli_connect("localhost""nonexisting_user""");

if (!
$link) {
printf("Can't connect to localhost. Error: %s\n"mysqli_connect_error());

See Also