Create an SSL connection:
<?php // Assume database username: root, password: 123456, database: CODERCTO $con=mysqli_connect("localhost","root","123456","CODERCTO"); if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } echo "System status: ". mysqli_stat($con); mysqli_close($con);?>
The mysqli_stat() function returns the current system status.
mysqli_stat( connection ) ;
parameter | describe |
---|---|
connection | Required. Specifies the MySQL connection to use. |
Return value: | Returns a string describing the status of the server. Returns FALSE if an error occurs. |
---|---|
PHP version: | 5+ |