View Single Post
  #1  
Old 04-03-2012, 07:57 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,858
SilverDragonTears is on a distinguished road
Default How to replace this to work with new Mys

Anyone know what to replace the query with to work with the new functions? I've tried things but nothing works.

PHP Code:
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;

__________________

Check out SilvaTales
Reply With Quote