RE: [PHP-DB] catch warnings?
| From: | Peter Lovatt | Date: | Wed, 10 Jul 2002 12:25:32 +0000 |
| Subject: | RE: [PHP-DB] catch warnings? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20447@lists.php.net to get a copy of this message | ||
look at
http://www.php.net/manual/en/function.mssql-get-last-message.php
Peter
-----------------------------------------------
Excellence in internet and open source software
-----------------------------------------------
Sunmaia
www.sunmaia.net
info@sunmaia.net
tel. 0121-242-1473
-----------------------------------------------
> -----Original Message-----
> From: Gabor Niederlaender [mailto:gabor.niederlaender@wu-wien.ac.at]
> Sent: 10 July 2002 12:37
> To: php-db@lists.php.net
> Subject: [PHP-DB] catch warnings?
>
>
> Hi all!
>
> This is not a typical DB-Question, but I hope you give me some hints
> either...
>
> If I insert a String instead of a date(f.Ex) into the DB, I get a
> Warning:
>
> MS SQL message: Syntax error converting datetime from character
> string. (severity 16)
>
> How can I catch these warnings in PHP?
>
> Best regards,
> Gabor
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>