How to use mysql stat in PHP
In this article I am going to explain about mysql_stat function in PHP.
PHP mysql_stat() Function
The PHP mysql_stat function is used to returns the current system status. This function returns status on success or NULL value on failure.
Syntax of mysql_stat function
Parameters in mysql_stat function
It has only one parameter:
Parameter |
Description |
connection |
It specifies MySQL connection. |
Example of mysql_stat function
<?php
$con=mysql_connect("localhost","gupta","sharad");
if(!$con)
{
die("Could not connect:".mysql_error());
}
mysql_select_db("mcn_solution",$con);
echo mysql_stat();
mysql_close($con);
?>
|
Output:

You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here