Re: DB && MYSQL: DB::isError() acting strange!
| From: | Lukas Smith | Date: | Sun, 01 May 2005 15:15:05 +0000 |
| Subject: | Re: DB && MYSQL: DB::isError() acting strange! | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19028@lists.php.net to get a copy of this message | ||
Torbjørn Amundsen wrote:
$connection->query($insertData); if(DB::isError($insertData))$result = $connection->query($insertData); if(DB::isError($result)) { actually I recommend to do if(PEAR::isError($result)) { since you dont care if its an DB or some other error. regards, Lukas