What is mysql get host info in PHP
In this article I am going to explain about mysql_get_host_info function in PHP.
PHP mysql_get_host_info() Function
The PHP mysql_get_host_info function is used to returns mysql host information.
Syntax of mysql_get_host_info function
mysql_get_host_info(connection) |
Parameters in mysql_get_host_info function
It has only one parameter:
Parameter |
Description |
connection |
It specifies MySQL connection. |
Example of mysql_get_host_info function
<?php
$con=mysql_connect("localhost","gupta","sharad");
if(!$con)
{
die("Could not connect:".mysql_error());
}
echo "MySQL host information: " .mysql_get_host_info($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