Re: DB error reporting and DB/ifx.php

From: Date: Wed, 28 Feb 2001 04:03:57 +0000
Subject: Re: DB error reporting and DB/ifx.php
Groups: php.pear 
Request: Send a blank email to php-pear+get-1505@lists.php.net to get a copy of this message
Quoting "Tomas V.V.Cox" <cox@idecnet.com>: > // an especific database method > function getNativeError (){ > return '<br><b>'.ifx_error().'</b> '.ifx_errormsg(); > } This is a nit in the context of your message, but it's an important nit: don't put html in error messages. If you have to return a structured string, use xml so that users can transform it into whatever form they need. But I think we should try to have all PEAR error messages be unstructured strings or error codes, so that programmers using the APIs can do whatever they need to do with errors with a minimum of fuss. -chuck -- Charles Hagenbuch, <chuck@horde.org> "We have no fuel on board, plus or minus 8 kilograms." -A NASA scientist

« previous php.pear (#1505) next »