Jump to content

Archived

This topic is now archived and is closed to further replies.

mmosel

How about mysql_error, error reporting, and what users see?

Recommended Posts

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!

Share this post


Link to post
Share on other sites
1/ yes.
2/ yes.
3/ You could simply change error_reporting(). Again though, this wont effect any calls to mysql_error().

Share this post


Link to post
Share on other sites
Ok, thank you. I have some work to do then.

Question: Does a mysql_error() NOT throw a PHP error?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.