Thread: My Adopts Page
View Single Post
  #7  
Old 12-20-2014, 08:17 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 125,297
Kyttias is on a distinguished road
Default

If this is doing what I think it's doing, then it's something I had plans for over break, yay~ headstart!

As for gender, try this:
PHP Code:
if ($adopt->getGender() == "m") { $gender "Male"; }
if (
$adopt->getGender() == "f") { $gender "Female"; } 
Or possibly this, if the above isn't going to work:
PHP Code:
 $gender_lookup $mysidia->db->select("owned_adoptables", array("gender"), "aid = '{$adopt->getAdoptID()}'")->fetchColumn();
if (
$gender_lookup == "m") { $gender "Male"; }
if (
$gender_lookup == "f") { $gender "Female"; } 
Place either below
PHP Code:
$adopt = new OwnedAdoptable($aid); 
And replace {$adopt->getGender()} with just {$gender}.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote