View Single Post
  #11  
Old 04-04-2012, 11:49 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 653,655
Hall of Famer is on a distinguished road
Default

PHP Code:
function getfamilynames($familymember$generation){   
$familyname = array(array());   
  for(
$i=0$i<=$generation$i++){ 
    for(
$j=0$j<count($familymember[$i]); $j++){       
      
$stmt $adopts->query("SELECT * FROM {$GLOBALS['prefix']}owned_adoptables WHERE aid = '{$familymember[$i][$j]}'");       
      
$thisadopt $stmt->fetchObject();        
      if(!
is_object($thisadopt)) $familyname[$i][$j] = "<br>";       
      else 
$familyname[$i][$j] = $thisadopt->name
    } 
  } 
  return 
$familyname
  } 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote