That's what I fine strange because I do have a act == "" statement:
PHP Code:
if($act == ""){
// No action specified, we just show all the adoptables with a manage link
$article_title = $loggedinname."'s Adoptables";
$article_content = $lang_adoptmanagement."<br>";
// We need to get all of the user's adoptables from the database and display them...
$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname'";
$result = mysql_query($query);
$num = mysql_numrows($result);
//Loop out code
$i=0;
while ($i < $num) {
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$petstatus=@mysql_result($result,$i,"status");
// Our code to determine if we show the table or not...
$article_content = $article_content."<table width='440' border='1'><tr>";
// Output the table information...
// Get the current adoptable's image
$image = getcurrentimage($aid);
$article_content = $article_content."<td><div align='center'><p>".$name."</p><p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>
<b><a href='myadopts.php?act=manage&id=".$aid."'>Manage</a> ---- </b>";
if ($petstatus = "Sick") { //SICK!! Provide the cure =3
$article_content = $article_content."Thoughts: Sick!! <a href='levelup.php?id=".$aid."'>Click to cure!!</a></p></div></td>";
}
else if ($petstatus = "Scared") { //SICK!! Provide the cure =3
$article_content = $article_content."Thoughts: Sick!! <a href='levelup.php?id=".$aid."'>Click to cure!!</a></p></div></td>";
}
else {
$article_content = $article_content."Thoughts: ".$petstatus."</p></div></td>";
}
$article_content = $article_content."</tr></table><br>";
$i++;
}
}
So for some odd reason it's skipping over that or something O.o