View Single Post
  #3  
Old 04-30-2012, 02:12 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,124
SilverDragonTears is on a distinguished road
Default

Code:
$result = $adopts->select("owned_adoptables", array(), "aid='{$id}'");
	while ($row = $result->fetchObject()) {
$father=$row->father;
$mother=$row->mother;

$getFather = $adopts->select("owned_adoptables", array(), "aid='{$father}'")->fetchObject();
$getFather->name;    
                         
$getMother = $adopts->select("owned_adoptables", array("name"), "aid='{$mother}'");
$nFather = $nFather['name'];
$nMother = $row->getMother;
$nMother = $nMother['name'];


if($father == '' && $nMother == '') {
    $article_content .= '';
} else {
    $article_content .= 'Father: <a href="levelup.php?id='.$father.'">' . $getfather . '</a><br> 
                  Mother: ' . $nMother . '<br>';
Somehow I didn't do it right :/
__________________

Check out SilvaTales
Reply With Quote