Re: DB && MYSQL: DB::isError() acting strange!
| From: | Torbjørn Amundsen | Date: | Sun, 01 May 2005 16:01:53 +0000 |
| Subject: | Re: DB && MYSQL: DB::isError() acting strange! | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19029@lists.php.net to get a copy of this message | ||
In the words of Homer Simpson: Duh!
Thanks for the help and the advice. I guess I got codeblindness at the moment. :-)
TØA
Lukas Smith wrote:
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