|
Posted by "Richard Lynch" on 08/10/05 23:34
On Wed, August 10, 2005 8:10 am, Georgi Ivanov wrote:
> Hi,
> I have a db wrapper class.
> I use it like this :
> $db->query"(SQL HERE") or die ($db->error());
> Is there a way to display the line on which $db->error() is executed
> without
> doing die (__LINE__." ".$db->error() )?
Sure!
Use these guys:
http://php.net/trigger_error
http://php.net/set_error_handler
> If i put __LINE__ in the class the line number is always the line in the
> class
> file.
>
> I want when i call $db->error() to display the current line number.
There may also be some fancy new way to output the whole stack of
functions called... I haven't really checked that out yet.
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|