DB_DataObject->find() crash.

From: Date: Fri, 06 Aug 2004 20:04:06 +0000
Subject: DB_DataObject->find() crash.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13986@lists.php.net to get a copy of this message
I wrote a small web application using PEAR/DB/DataObject/Smarty. if(isset($_GET['charitycode'])){ $code = $_GET['charitycode']; $charity = DB_DataObject::factory('charity'); $charity->whereAdd('urlcode=\''.$code.'\''); if($charity->find(true)){ $_SESSION['charitycode'] = $code; $_SESSION['charityid'] = $charity->id; } else { unset($_SESSION['charitycode']); unset($_SESSION['charityid']); } } When I call the find() function above it seems that my script crashes and no errors or debugging information is written. I notice before that I forgot to upload my schema file (it was crashing before trying to read the structure on its own), but now that I uploaded it, it still doesn't work. If I comment out the find section the script continues on, until the next find() function. Any ideas? Matt

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