Re: PEAR Access Kills While Loop

From: Date: Thu, 21 Sep 2006 16:23:58 +0000
Subject: Re: PEAR Access Kills While Loop
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25190@lists.php.net to get a copy of this message
Alex Ezell wrote: > $res =& $db->query("SQL Query Here"); Add an error check this line: if (PEAR::isError($res)) { die($res->getMessage() . '<br />' . $res->getDebugInfo()); } > function printStatus($filmID){ > $status = $this->db->getOne("SELECT active FROM films WHERE filmID > = '$filmID'"); Add an error check here, too: if (PEAR::isError($status)) { die($status->getMessage() . '<br />' . $status->getDebugInfo()); } This hopefully helps you finding the problem. Regards, Mark

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