
Druckansicht von http://www.php-homepage.de/manual/mysqli.connect-error.php
mysqli::$connect_errormysqli_connect_error(PHP 5) mysqli::$connect_error -- mysqli_connect_error — Returns a string description of the last connect error BeschreibungObjektorientierter Stil string $mysqli->connect_error;
Prozeduraler Stil
string mysqli_connect_error
( void
)
Returns the last error message string from the last call to mysqli_connect(). Rückgabewerte
A string that describes the error. BeispieleBeispiel #1 $mysqli->connect_error example Objektorientierter Stil
<?phpProzeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Connect Error: Access denied for user 'fake_user'@'localhost' (using password: YES) AnmerkungenWarnung
The mysqli->connect_error property only works properly as of PHP versions 5.2.9 and 5.3.0. Use the mysqli_connect_error() function if compatibility with earlier PHP versions is required. Siehe auch
|