mysql_info()

It returns information about the last query

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die( mysql_error());
mysql_select_db(“database_name”);
mysql_query(“INSERT INTO users (name) VALUES (‘PHP’)”);
echo mysql_info();
mysql_close();
?>

Share