Synopsis
string mysql_error([connection])
This function returns the error message for the last MySQL
statement issued. It returns nothing if there was no error. Another
MySQL connection identifier may be given as an argument for the
function. See mysql_errno() earlier in this
section for an example of how mysql_error()
may be used.