Re: DB_DataObject: Skipping a record
| From: | Alan Knowles | Date: | Wed, 11 Jun 2003 00:35:18 +0000 |
| Subject: | Re: DB_DataObject: Skipping a record | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-5901@lists.php.net to get a copy of this message | ||
Warwick Bruce Chapman wrote:
Howdy All I have this little snippet below, which I think is the problem part of this (http://www.pastebin.com/12174) code. Basically there is always one record (I cannot see a pattern) which has a status="P", but does not display... Any ideas? <SNIP> $job = new DataObjects_Projects; $job->get("status","P"); // Fetch all jobs which have status="P"get, will always fetch as well.. try just doing $job->status="P"; $job->find();
// Loop to display current jobs while ($job->fetch()) { </SNIP>Regards Alan
Warwick Chapman Managing Member Thusa Business Support cc Cell: +27 83 7797094 Fax: +27 31 2055838 -- There are 10 types of people in this world. Those who understand binary, and those who don't. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/