mmosel Posted July 2, 2006 Share Posted July 2, 2006 Hi all,I have a couple of error related questions. First off, I have a function that I run when I need a special error display. Currently, if there is a mysql_error, I run my function with the mysql_error() inside the function which displays it on a error page. 1. Is it bad to show the user a mysql_error() notice? 2. If I have error_reporting off, will mysql_error() still show up? 3. Is there an easy php function to add content or errors to the error log, or do I have to write something custom?Thanks for all your help! Quote Link to comment https://forums.phpfreaks.com/topic/13499-how-about-mysql_error-error-reporting-and-what-users-see/ Share on other sites More sharing options...
trq Posted July 2, 2006 Share Posted July 2, 2006 1/ yes.2/ yes.3/ You could simply change error_reporting(). Again though, this wont effect any calls to mysql_error(). Quote Link to comment https://forums.phpfreaks.com/topic/13499-how-about-mysql_error-error-reporting-and-what-users-see/#findComment-52234 Share on other sites More sharing options...
mmosel Posted July 2, 2006 Author Share Posted July 2, 2006 Ok, thank you. I have some work to do then.Question: Does a mysql_error() NOT throw a PHP error? Quote Link to comment https://forums.phpfreaks.com/topic/13499-how-about-mysql_error-error-reporting-and-what-users-see/#findComment-52235 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.