PHP mysqli_stat() Function
PHP MySQLi Reference
Example
Create an SSL connection:
<?php
$con=mysqli_connect("localhost","my_user","my_password","my_db");
// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
echo "System status: ". mysqli_stat($con);
mysqli_close($con);
?>
Definition and Usage
The mysqli_stat() function returns the current system status.
Syntax
| Parameter |
Description |
| connection |
Required. Specifies the MySQL connection to use |
Technical Details
| Return Value: |
Returns a string that describes the server status. FALSE if
an error occured |
| PHP Version: |
5+ |
PHP MySQLi Reference
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]