Quote:
	
	
		| 
					Originally Posted by rosepose
					
				 *raises hand* I have a question! The pet bits are strangely absent from profile2.php, how would I put them in? | 
	
 oh, lol I forgot I took those out, thats rather simple actually, just add this:
near the stat's section:
add this right after all the Instant messaging info
	PHP Code:
	
		
			
    $query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '".$user."'";
    $result = mysql_query($query);
    $numpets = mysql_numrows($result);
    // Show the user's profile page... 
		
	
 Then add this right at the end of the $article_content
	PHP Code:
	
		
			
    <b>Number Of Pets Owned:</b> ".$numpets."<br><br>
    <b><u>".$usersname."'s Pets:</u></b><br><br>";
    if($numpets > 0){
    $i=0;
    while ($i < $numpets) {
    $aid=@mysql_result($result,$i,"aid");
    $image = getcurrentimage($aid);
    $article_content = $article_content."<a href='levelup.php?id=".$aid."'><img src='".$image."' border='0'></a>";
    $i++;
    }
    }
    else{
    $article_content = $article_content."This user currently does not have any pets.";
    }
    }
    else{
    
    // User doesn't seem to exist, oh noes!
    $article_title = "User Does Not Exist";
    $article_content = "Sorry, but we could not find a user in the system with the name ".$user.".  
    Please make sure you have the username right.  The user's account may also have been deleted by the system admin.";
 
    }