Re: display error line in object method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/05, Georgi Ivanov <joro@xxxxxxxxxxxxxxx> 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux