出售域名  LinuxTags


mysqli_connect_error

(PHP 5)

mysqli_connect_error — Returns a string description of the last connect error

说明

string mysqli_connect_error ( void )

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

返回值

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

范例

Example#1 mysqli_connect_error() example

<?php

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

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


出售域名  LinuxTags