View Single Post
  #5  
Old 11-12-2013, 06:21 AM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 24,328
Infernette is on a distinguished road
Default

I changed it to fill, but now it only shows one of the adoptables.

Updated code:
PHP Code:
        $ids $mysidia->db->select("owned_adoptables", array("aid"), "owner = '{$mysidia->user->username}' AND bred != 'comp' AND attached = 'no' and currentlevel > 6 and selling = 'no'")->fetchAll(PDO::FETCH_COLUMN);    
        
$names1 $mysidia->db->select("owned_adoptables", array("name"), "owner = '{$mysidia->user->username}' AND bred != 'comp' AND attached = 'no' and currentlevel > 6 and selling = 'no'")->fetchAll(PDO::FETCH_COLUMN);

$index 0
            foreach(
$names1 as $names){ 
                    
$equals " ("
                    
$equals2 ")"
                    
$nameFinal $names .= $equals .= $ids[$index] .= $equals2
                     
                    
$index++; 
            }  
        
$adoptable->add(new Option($nameFinal$ids[$index]));
        
        
$chooseFrom->add($adoptable); 
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote