Re: custom error handling
| From: | electroteque | Date: | Tue, 07 Jan 2003 21:28:58 +0000 |
| Subject: | Re: custom error handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130631@lists.php.net to get a copy of this message | ||
here is an example of the error sorry forgot to add it
DB Error: syntax error
SELECT gallery FROM galleries WHERE galleryID= [nativecode=1064 ** You have
an error in your SQL syntax. Check the manual that corresponds to your MySQL
server version for the right syntax to use near '' at line 1]
like line 1 could be anywhere and the query i buggered on purpose is 100
lines down
"Electroteque" <daniel@electroteque.org> wrote in message
news:20030107212934.2380.qmail@pb1.pair.com...
> hi there i am trying to build a ustom error handler for the pear db aswell
> as catch fatal and parse errors , unfortunatly the pear db error message
> wont give me back the file and the line where the error is, how can i
> determine the line and file where the error is caused ufortunatly the
> callback funtion with the params $errfile and $errline return the file
that
> contains the trigger not the script itself !
>
>