PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2 fetchAll() not retriving all the records fom database

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
madhotra



Joined: 10 Mar 2008
Posts: 2

PostPosted: Fri May 23, 2008 1:42 pm    Post subject: MDB2 fetchAll() not retriving all the records fom database Reply with quote

Hi,

I'm trying to develop Web Service using PEAR::SOAP,

I got struck in an unusual problem !
when i'm using fetchAll() function, i'm just able to retrieve just 11 records from my DB,
if my DB have more than 11 records associated to that query, than it shows me Timed Out Error, in my browser.

My code is for the particular function is . . .
public function executeRetrieveAllQuery($strSQLQuery) {
$arrTransactionsData = array();
self::getDataBaseConnection();
$resultSet = self::$objMdb2->query($strSQLQuery);
if(PEAR::isError($resultSet)) {
$strErrorMsg = 'Query Execution Error : ' . $resultSet->getMessage(). $resultSet->getDebugInfo();
throw new PMS_CustomException($strErrorMsg,'PointsDB : executeRetrieveAllQuery()');
}
$intRows = $resultSet->numRows();
if ($intRows == 0) {
throw new PMS_CustomException('No rows returned','PointsDB : executeRetrieveAllQuery()');
} else {
$arrTransactionsData = $resultSet->fetchAll(MDB2_FETCHMODE_ASSOC);
}
$resultSet->free();
return $arrTransactionsData;
}

Plz help . . .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software