Addressed to: "Richard Lynch" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> Fri, 16 Feb 2001 17:21:03
-0600
>
> Do you get the line number and filename of the script that *called* the
> query function, or is it always the query func
Addressed to: "Richard Lynch" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> Thu, 15 Feb 2001 19:54:55
-0600
> Does die() give you a line number? If not, just put it in there.
No, die() does not add to your message.
Here is how
inal Message -
From: Christian Dechery <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, February 15, 2001 6:30 PM
Subject: [PHP] the best so far
> this is the best I got so far, for treating any sql syntax errors as
normal
> ERROrs and halting the parsing to report it.
&
this is the best I got so far, for treating any sql syntax errors as normal
ERROrs and halting the parsing to report it.
like:
SQL Syntax Error:
'$query'\n";
$msg.="[".mysql_errno()."]"
".mysql_error()."at $errline";
die($msg);
}
?>
anyone has a 'less
4 matches
Mail list logo