print __LINE__
Will print the line number (as per
http://www.php.net/manual/en/language.constants.php).
--dave
> -----Original Message-----
> From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 29 January 2001 7:21 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]