Thread: My Adopts Page
View Single Post
  #8  
Old 12-20-2014, 08:28 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 28,074
parayna is on a distinguished road
Default

No, it doesn't quite work. It get's rid of the m and f but's replaces it with nothing. It just shows 'Gender:'

This is what I have:

PHP Code:
                $aid $stmt->fetchColumn();
                
$adopt = new OwnedAdoptable($aid);
                
$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"; }  
                
$cell = new ArrayList
                
$cell->add(new Comment("<a href='/myadopts/manage/{$aid}'><img src='{$adopt->getImage()}'></a>"));
                
$cell->add(new Comment("<b>Name: </b>{$adopt->getName()}"));
                
$cell->add(new Comment("<b>Gender: </b>{$Gender}"));
                
$cell->add(new Comment("<b>Clicks: </b>{$adopt->getTotalClicks()}")); 
Thanks ~
Reply With Quote