Note that this function only returns the error code from the most recently executed MySQL function (not including ...
php.net