string mysql_info([resource $res])
(PHP 4 >= 4.30, PHP 5)
| $res | The database connection resource that we want to use. |
|---|---|
| RETURNS | Detailed information about the last query. |
Returns information about the last query run against the MySQL database. This information includes:
// open the mysql resource $res = mysql_connect($server, $user, $pass); // insert a single row into tblState mysql_query('INSERT * INTO tblState (\'California\')', $res); // get the error number $minfo = mysql_info($res);