Re: Raise error in case of wrong query
| From: | Stefan Walk | Date: | Tue, 13 May 2003 18:06:38 +0000 |
| Subject: | Re: Raise error in case of wrong query | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5355@lists.php.net to get a copy of this message | ||
On Tue, May 13, 2003 at 07:53:37PM +0200, akorthaus@web.de wrote:
> if (DB::isError($db)) {
> die ($db->getMessage());
> }
You might want to replace this with
if (DB::isError($result)) {
die ($result->getMessage());
}
Stefan
--
Stefan Walk
swalk@prp0.prp.physik.tu-darmstadt.de