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);