PHP mysqli_stat() Function
In this chapter you will learn:
- Definition for PHP mysqli_stat() Function
- Syntax for PHP mysqli_stat() Function
- Example - Get the current system status
Definition
The mysqli_stat() function returns the current system status.
Syntax
PHP mysqli_stat() Function has the following syntax.
mysqli_stat(connection);
Example
Get the current system status
<?php// j a v a2s. c om
$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);
?>
Next chapter...
What you will learn in the next chapter:
- Definition for PHP mysqli_stmt_init() Function
- Syntax for PHP mysqli_stmt_init() Function
- Parameter for PHP mysqli_stmt_init() Function
- Return for PHP mysqli_stmt_init() Function
- Example - PHP mysqli_stmt_init() Function
Home » PHP Tutorial » PHP MySQLi Functions