note 24717 added to function.ocierror

From: Date: Tue, 27 Aug 2002 00:37:17 +0000
Subject: note 24717 added to function.ocierror
Groups: php.notes 
Request: Send a blank email to php-notes+get-35694@lists.php.net to get a copy of this message
This works well for me...where $select is your handle and dodberror is a custom function you've written to handle the error. This way you need not worry about what each function returns...just use OCIError to see if there was an error or not. if (OCIError($select)) { $erra=OCIError($select); dodberror("SQL Error: $erra[code] $erra[message]"); } -- http://www.php.net/manual/en/function.ocierror.php http://master.php.net/manage/user-notes.php?action=edit+24717 http://master.php.net/manage/user-notes.php?action=delete+24717 http://master.php.net/manage/user-notes.php?action=reject+24717

« previous php.notes (#35694) next »