mysqli_stat - 语法
mysqli_stat(connection);
此函数返回当前系统状态。
Sr.No | 参数 & Description |
---|---|
1 |
connection 它指定要使用的关于连接 |
mysqli_stat - 返回值
成功时返回TRUE,失败时返回FALSE
mysqli_stat - 示例
<?php $connection_mysql=mysqli_connect("localhost","user","password","db"); if (mysqli_connect_errno($connection_mysql)){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } echo "System status: ". mysqli_stat($connection_mysql); mysqli_close($connection_mysql); ?>