Re: display error line in object method

From: Date: Thu, 11 Aug 2005 01:16:34 +0000
Subject: Re: display error line in object method
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220397@lists.php.net to get a copy of this message
On 8/10/05, Georgi Ivanov <joro@abacustrade.com> 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() )? http://us3.php.net/debug_backtrace Wouldn't that work?

« previous php.general (#220397) next »