mysql_error — Returns a string description of the last error
const char * mysql_error(MYSQL * mysql);Returns the last error message for the most recent function call that can succeed or fail.
Parameters
mysqlA mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Return value
A string that describes the error. If no error occured an emtry string is returned.
See also
mysql_errno(), mysql_sqlstate().