note 34206 added to function.odbc-error
| From: | sunil_limje at indiatimes dot com | Date: | Fri, 18 Jul 2003 08:06:28 +0000 |
| Subject: | note 34206 added to function.odbc-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52329@lists.php.net to get a copy of this message | ||
I have use this function, its very simple and cute.
with IBM DB2
<?php
// you must set the connection first
if (odbc_error())
{
echo odbc_errormsg($conn);
}
// if you want to show the perfect error message
// then format it using string functions.
?>
Have a good day!
----
Manual Page -- http://www.php.net/manual/en/function.odbc-error.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34206
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34206&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34206&report=yes