Re: note 16027 added to ref.ifx

From: Date: Sat, 13 Oct 2001 02:08:33 +0000
Subject: Re: note 16027 added to ref.ifx
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18873@lists.php.net to get a copy of this message
On October 12, 2001 06:50 pm, jonathan.leffler@informix.com wrote: > Is there a formal way to suppress the error messages from a failed > ifx_query() function? The workaround I'm using is: > > echo "<!--\n"; > ifx_query("DROP TABLE date_list", $dbh); > echo "-->\n"; > > The date_list table is a temporary table that won't exist, in > general. By using the echo commands on either side, I conceal the > error output (-206: the sepcificed table does not exist in the > database) in an HTML comment, but it doesn't feel very clean. Place a single @ in front of the line. For more information, review the error handling section of the manual. -- Zak Greant PHP Quality Assurance Team http://qa.php.net/ "We must be the change we wish to see." - M. K. Ghandi

« previous php.notes (#18873) next »