Re: DB_DataObject->find() crash.

From: Date: Fri, 06 Aug 2004 20:27:54 +0000
Subject: Re: DB_DataObject->find() crash.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13988@lists.php.net to get a copy of this message
On Fri, 6 Aug 2004 16:04:06 -0400, Matt Erkkila <merkkila@reddiamonddesign.com> wrote: > 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? > PHP4 or PHP5? If PHP4, are you setting DB_DATAOBJECT_NO_OVERLOAD? If not, do this: define('DB_DATAOBJECT_NO_OVERLOAD', true); > Matt > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

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