RE: [PHP] when using die(), how can i get the line number that er rored?
| From: | Maxim Maletsky | Date: | Tue, 30 Jan 2001 02:47:39 +0000 |
| Subject: | RE: [PHP] when using die(), how can i get the line number that er rored? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37228@lists.php.net to get a copy of this message | ||
$res = mysql_query($badsqlstatement) or die(errtrapper().' at line
(<B>'.__LINE__.'</B>)');
Cheers,
Maxim Maletsky
-----Original Message-----
From: Noah Spitzer-Williams [mailto:noahsw@cyberdude.com]
Sent: Monday, January 29, 2001 6:21 AM
To: php-general@lists.php.net
Subject: [PHP] when using die(), how can i get the line number that
errored?
here's my code:
$res = mysql_query($badsqlstatement) or die(errtrapper());
inside errtrapper(), is there a way to find out what line this error
occurred?
thanks!!
- Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net