Re: catch warnings?
| From: | Michael Bretterklieber | Date: | Wed, 10 Jul 2002 12:28:24 +0000 |
| Subject: | Re: catch warnings? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20449@lists.php.net to get a copy of this message | ||
Hi,
try
SELECT @@ERROR as errorcode
bye,
Adam Alkins schrieb:
-- -------------------------------------- Michael Bretterklieber LCP JAWA Management Software GmbH Liebenauer Hauptstr. 200 A-8041 GRAZ Tel: ++43-(0)316-403274-12 Fax: ++43-(0)316-403274-10 GSM: ++43-(0)676-93 96 698 Michael.Bretterklieber@jawa.at homepage: http://www.jawa.at --------- privat ----------- E-mail: mbretter@inode.at homepage: http://www.inode.at/mbretter -------------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972Hi 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?I believe mssql_get_last_message() is what you want. -------------- Adam Alkins http://www.rasadam.com --------------