别名和过时的Mysqli 函数
在线手册:中文  英文

mysqli_connect

(PHP 5)

mysqli_connect别名 mysqli::__construct()

说明

此函数是该函数的别名: mysqli::__construct()


别名和过时的Mysqli 函数
在线手册:中文  英文

用户评论:

hudavilas at hotmail dot com (2013-04-08 22:52:17)

// Create connection
$con=mysqli_connect("localhost","root","","gts");
// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
} else { echo "Connection was OK!\n";}

易百教程