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
[ 0 ] Comments