Re: PEAR DB Error Messages

From: Date: Tue, 11 Mar 2003 20:58:28 +0000
Subject: Re: PEAR DB Error Messages
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4165@lists.php.net to get a copy of this message
On Tuesday 11 March 2003 02:34 pm, Charles Kline wrote: > Is there a way to get a better idea of what kind of error is > happening and why besides the one I am getting now that is: > > DB Error: syntax error > > Thanks, > Charles I do this: if (DB::isError($res)) { die ($res->getDebugInfo() . " at line " . __line__ ); } It will give an informative error message and your query. You could cut and paste the query into your command line SQL program and see what the db says. -- James 'Chip' Kaufman jkaufman@wamnet.com PGP key: 697D43DE

« previous php.pear.general (#4165) next »