RE: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-07 Thread Ligaya A. Turmelle
Well - first I would turn off display errors and turn on log errors. Then - well there is always the error suppressor (@) - but I personally don't like it. You could also create a custom error handler... And I wonder if mysqli supports exceptions... http://www.php.net/manual/en/ref.errorfunc.php

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Morris
Richard Lynch wrote: On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: Richard Lynch wrote: On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: I am having this problem that I hope can be worked around. I make a connection to our MySQL d

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: > Richard Lynch wrote: >> On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: >>> I am having this problem that I hope can be worked around. I make >>> a >>> connection to our MySQL database using the object version of >>> mysqli. >>> If >>>

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: > sidenote: where exactly do you put the @ to suppress the error in this > line?: > > $db = new mysqli('localhost', 'user', 'badpass', 'test'); Since it is the 'new' operator which is issuing the WARNING, as far as I can tell, you should put it i

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Jochem Maas
Richard Lynch wrote: > On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: >> I am having this problem that I hope can be worked around. I make a >> connection to our MySQL database using the object version of mysqli. >> If >> access is denied because of an incorrect username or password, mysq

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: > I am having this problem that I hope can be worked around. I make a > connection to our MySQL database using the object version of mysqli. > If > access is denied because of an incorrect username or password, mysqli > displays an error. Is