Reply to display error line in object method

Your name:

Reply:


Posted by Georgi Ivanov on 08/10/05 18:10

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация