Re: MySQL error reporting
- From: "Steve" <no.one@xxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 12:59:21 -0500
| And of course I'd want at a minimum to be able to note the error &
| suppress my "thank you" message afterwards. That bit of code is simply:
|
| query($query);
| print "<p>Thank you! Your registration has been completed!</p>\n";
|
| more like this:
|
| query($query);
| if (!$error){
| print "<p>Thank you! Your registration has been completed!</p>\n";
| }
have you tried something like:
if (@query($query) !== false)
{
//thanks
} else {
// handle the error
}
.
- References:
- Re: MySQL error reporting
- From: Paul Furman
- Re: MySQL error reporting
- From: Paul Furman
- Re: MySQL error reporting
- Prev by Date: Re: SQLite3 and PHP
- Next by Date: Re: include_path related issue
- Previous by thread: Re: MySQL error reporting
- Next by thread: Re: MySQL error reporting
- Index(es):