What is mysql get proto info in PHP

In this article I am going to explain about mysql_get_proto_info function in PHP.
  • 1276

PHP mysql_get_proto_info() Function

The PHP mysql_get_proto_info function is used to returns mysql protocol information.

Syntax of mysql_get_proto_info function

mysql_get_proto_info(connection)

Parameters in mysql_get_proto_info function

It has only one parameter:

Parameter Description
connection It specifies MySQL connection.

Example of mysql_get_proto_info function

<?php

$con=mysql_connect("localhost","gupta","sharad");

if(!$con)

{

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

}

echo "MySQL protocol information: " .mysql_get_proto_info($con);

mysql_close($con);

?>


Output:

mysql-get-proto-info-php.jpg

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

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.