Name

mysql_info( )

Synopsis

mysql_info([connection])

This returns information on the last query for the current connection to MySQL. An identifier may be given to retrieve information on a query for a different connection.

...
$sql_stmnt = "SELECT * FROM workreq";
$results = mysql_query($sql_stmnt);
print mysql_info( );
...

Here are the results of this script:

String format: 528 rows in set

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.