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

2007-01-07 Thread Ligaya A. Turmelle
] How to suppress error messages when using 'new mysqli(...)' Hi, 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 display

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

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

2007-01-05 Thread Richard Morris
Hi, 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 there any way to suppress the error message? Here is