Name

mysql_error( )

Synopsis

mysql_error([connection])

This returns the error message for the last MySQL statement issued. The function returns nothing if there was no error. Another MySQL connection identifier may be given as an argument for the function. See mysql_errno( ) for an example of how mysql_error( ) may be used.

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.