Anyone know what to replace the query with to work with the new functions? I've tried things but nothing works.
PHP:
function getfamilymembers($aid, $generation){
$familymember = array(array($aid));
for($i=0; $i<$generation; $i++){
for($j=0; $j<count($familymember[$i]); $j++){
$query = "SELECT * FROM {$GLOBALS['prefix']}owned_adoptables WHERE aid = '{$familymember[$i][$j]}'";
$thisadopt = mysql_fetch_array($result);
$familymember[$i+1][2*$j] = $thisadopt['mother'];
$familymember[$i+1][2*$j+1] = $thisadopt['father'];
}
}
return $familymember;
}