That may be the case if you are calling on a PHP function and an error is generated, but you aren't going to see the database errors generated by MySQL using that method, which are more useful in this case. I didn't even know such a method existed, so needless to say I've never used it.
To get around the Notice error, add this to the start of your code. I assume that variable is only created if there is an error to report. For that bit of code you have there, mysql_error() is what you want to use anyway.
if (!isset($php_errormsg))
{
$php_errormsg = '';
}
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design