Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

mysqli stat function syntax tag tutorial 2013 Donate at flattr Flattr this

Alert! Connect with 10,000 Chating Online. Join Now

Php mysqli stat () function

Write your php code

<?php ?>

Php Result

Your code below

(PHP 5)


(no version information, might be only in CVS)

mysqli->stat -- Gets the current system status


Procedural style:

mixed mysqli_stat ( mysqli link )

Object oriented style (method):

class mysqli {

mixed stat ( void )


mysqli_stat() returns a string containing information similar to that provided by the 'mysqladmin status' command. This includes uptime in seconds and the number of running threads, questions, reloads, and open tables.

Return Values

A string describing the server status. FALSE if an error occurred.


Example 1. Object oriented style

= new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());

printf ("System status: %s\n", $mysqli->stat());


Example 2. Procedural style

= mysqli_connect("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());

printf("System status: %s\n", mysqli_stat($link));


The above example will output:

System status: Uptime: 272  Threads: 1  Questions: 5340  Slow queries: 0
Opens: 13  Flush tables: 1  Open tables: 0  Queries per second avg: 19.632
Memory in use: 8496K  Max memory used: 8560K

Php mysqli stat Function syntax tag

mysqli stat php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online

Php mysqli stat syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.

Function index







Date & Time

Directory function




Form data handling

Mathematics operators


Php Mysql

Network Functions


php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online