How to use mysql info in PHP
In this article I am going to explain about mysql_info function in PHP.
PHP mysql_info() Function
The PHP mysql_info function is used to returns information about the most recent query.
Syntax of mysql_info function
Parameters in mysql_info function
It has only one parameter:
Parameter |
Description |
connection |
It specifies MySQL connection. |
Example of mysql_info function
<?php
$con=mysql_connect("localhost","gupta","sharad");
if(!$con)
{
die("Could not connect: ". mysql_error());
}
mysql_select_db("Mcn_Solution",$con);
$res=mysql_query("insert into Emp values('Oliver','Goldsmith','108')");
$info=mysql_info($con);
mysql_close($con);
?>
|
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