display error line in object method

From: Date: Wed, 10 Aug 2005 15:10:12 +0000
Subject: display error line in object method
Groups: php.general 
Request: Send a blank email to php-general+get-220339@lists.php.net to get a copy of this message
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() )? 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.

« previous php.general (#220339) next »