ID: 1187 Updated by: jimw Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: odbc_error and odbc_errorstr were added (will be in 4.0.5). Previous Comments: --------------------------------------------------------------------------- [1999-02-26 03:12:03] [EMAIL PROTECTED] I added the above function to mys version of php a while ago and have found it very usefull. The rationale for this is that when an error occurs you want to send back some meaningfull error message in the page contents in a formatted manner. ie <P class=error> Sorry but uodbc_lasterror() occured. (ie insert record failed). Thus I created a function odbc_lasterror() that returns the last error from SQLError. In my version I strip off everything prior to the actual error message , as the state info etc is of no value to an end user. MTCW. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=1187&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]