For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > two queries on the same object (Help)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author two queries on the same object (Help)
Yuan N Yudistira

2004-08-26, 8:56 am

Hi,..
My name is Yuan,..
I am new to Pear

I get this error code :
MESSAGE: You cannot do two queries on the same object (copy it before
finding)
TYPE: PEAR
DEBUG INFO:
CODE: -1


What does it mean?

Where to go to find meaning of error code lika this ?



Thanks



YUAN

Ps. I use Pear on Seagull Frame work and

here is a piece of code i am trying to do :

// Generate select box of Client specific to entity
$oClient = & new DataObjects_Client();
if($output->isJSO != 1) $oRateType->whereAdd("entity_id =
$iEntityID");
$oClient->orderBy('organization_name');
$result = $oClient->find();
if ($result > 0) {
$aClient = array();
while ($oClient->fetch()) {
$aClient[ $oClient->client_id ] =
$oClient->organization_name;
}
}
$output->Client = SGL_Output::generateSelect($aClient);
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com