Reusing DB_DataObject

From: Date: Fri, 30 Sep 2005 07:10:10 +0000
Subject: Reusing DB_DataObject
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21167@lists.php.net to get a copy of this message
Hiya, I'm trying to write a page that initially lists the content of a table, and then includes a DB_DataObject_FormBuilder-form below it where you can add a new entry or edit a selected entry. I do a normal find() to fetch the list of entries, and then a while(->fetch()) to loop out the entries. However, when I come to use the DB_DataObject_FormBuilder-form the form is always set to the last entry in the fetch()-loop. How do I reset the DB_DataObject's results? Or do I need to clone the DB_DataObject before the loop? Or do I need to recreate the object? Thanks! /Jocke

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