View Single Post
  #2  
Old 11-11-2013, 07:46 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,319
IntoRain is on a distinguished road
Default

Image I don't know if it's possible, but to add the code next to the name I don't really remember how I did it, but I believe I just went to the dropdown list creation and instead of sending just the name i send the code concatenated with the name, like:

$nameFinal = $name .= '( ' .= $code .= ')'

or something alike


edit:

I have this for females in the breeding thing

PHP Code:
$index 0;
            foreach(
$femaleNames as $namesF){
                    
//echo $femaleIDsarray[$index];
                    
$equals " (";
                    
$equals2 ")";
                    
$nameAndID $namesF .= $equals .= $femaleIDsarray[$index] .= $equals2;
                    
//echo $nameAndID;
                    
                    //echo $femaleIDsarray[$index];
                    
$female->add(new Option($nameAndID$femaleIDsarray[$index]));
                    
$index++;
            } 
__________________


asp.net stole my soul.

Last edited by IntoRain; 11-11-2013 at 07:51 PM.
Reply With Quote