Re: Catch PHP warning message into PHP variable???
| From: | Scott Fletcher | Date: | Wed, 07 Apr 2004 14:34:11 +0000 |
| Subject: | Re: Catch PHP warning message into PHP variable??? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11704@lists.php.net to get a copy of this message | ||
Thanks...
FletchSOD
"Guillaume Lecanu" <Guillaume.Lecanu@Online.fr> wrote in message
news:1081347301.2167.1.camel@skorpios...
Hi,
Prefix the call with the '@' character like this :
$result1 = @odbc_exec(...)
You can get the error message with odbc_error() function :
http://www.php.net/odbc_error
Le mer 07/04/2004 à 16:13, Scott Fletcher a écrit :
> Hi!
>
> I wanted to know is how to catch the PHP warning message that get
> displayed to the screen, how to catch it and put it into the variable.
>
> --snip--
> $result1 = odbc_exec($cid,"select * from customer");
> --snip--
>
> Thanks...
> FletchSOD