How to use mysql get server info in PHP

In this article I am going to explain about mysql_get_server_info function in PHP.
  • 1644

PHP mysql_get_server_info() Function

The PHP mysql_get_server_info function is used to get mysql server information. This function returns the mysql server version on success, or false on failure.

Syntax of mysql_get_server_info function


Parameters in mysql_get_server_info function

It has only one parameter:

Parameter Description
connection It specifies MySQL connection.

Example of mysql_get_server_info function





die("Could not connect:".mysql_error());


echo "MySQL server information: " . mysql_get_server_info($con);




You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.