Try reading the manual on "set_error_handler". I've never needed to do this kind of thing, but this sure looks like something that could do it. Basically, I'm imagining that it would open a file handle on some text file in some folder, then append a write of mysql_error() to that file and probably the line number and such and then close it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php