PHP mysqli_stat () function
Creating an SSL connection:
<?php // 假定数据库用户名:root,密码:123456,数据库:w3big $con=mysqli_connect("localhost","root","123456","w3big"); if (mysqli_connect_errno($con)) { echo "连接 MySQL 失败: " . mysqli_connect_error(); } echo "System status: ". mysqli_stat($con); mysqli_close($con); ?>
Definition and Usage
mysqli_stat () function returns the current system status.
grammar
mysqli_stat( connection ) ;
参数 | 描述 |
---|---|
connection | 必需。规定要使用的 MySQL 连接。 |
technical details
return value: | It returns a string that describes the state of the server. If an error occurs it returns FALSE. |
---|---|
PHP version: | 5+ |
PHP MySQLi Reference Manual