THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP mysqli_stat() Function

PHP MySQLi Reference 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())
  {
  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

mysqli_stat(connection);

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 PHP MySQLi Reference