I have a class called DBI which handles all of my database calls. One method called Fetch_Array simply has
return mysql_fetch_assoc($resultID) It's losing it's value when I try to pass the val to another var example class BaseItem { function getBaseItems() { return $objDBI->Fetch_Array($objDBI->getResultID()); } } on my page I want to be able to do this while($rows=$objBaseItem->getBaseItems()) { output HTML; } if I die(sizeof($objDBI->Fetch_Array($objDBI->getResultID()))) within the DBI method, it return the correct value, however if I do $retval = $objDBI->Fetch_Array($objDBI->getResultID()); die(sizeof($retVal)); it returns 0. why does it lose it's value? What can I do to retain the value. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php