PHP mysql_get_client_info() Function Example

PHP mysql_get_client_info() Function Example


Posted in : PHP Posted on : February 19, 2011 at 6:15 PM Comments : [ 0 ]

The mysql_get_client_info() function is used to get information about the MySQL client.

PHP mysql_get_client_info() Function Example:

The mysql_get_client_info() function is used to get information about the MySQL client. This function returns version of the MySQL client on success or false on failure.

Syntax:

mysql_get_client_info()

Example:

<?php
$connection = mysql_connect("localhost","root","root");
if (!$connection)
{
die('PHP Mysql database connection could not connect : ' . mysql_error());
}

echo "MySQL client info: " . mysql_get_client_info();

mysql_close($connection);
?> 

Output:

MySQL client info: 5.0.51a

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics