Hi,
In my script (phpnuke), whenever there is access to database, there is
this line of code:
message_die(GEN ERAL_ERROR, ’some error msg’, ’’, __LINE__, __FILE__,
$sql);
Is there a more elegant way of reporting line number besides putting
this line everywhere I access db. I want to just write a function,
which also globally knows about the current line number(?) and in case
of error reports it.
Is there any way to do that?
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-Elegant-...ict206147.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=703259
In my script (phpnuke), whenever there is access to database, there is
this line of code:
message_die(GEN ERAL_ERROR, ’some error msg’, ’’, __LINE__, __FILE__,
$sql);
Is there a more elegant way of reporting line number besides putting
this line everywhere I access db. I want to just write a function,
which also globally knows about the current line number(?) and in case
of error reports it.
Is there any way to do that?
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-Elegant-...ict206147.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=703259
Comment