Guys a change was made so if you're using this please add in this new edit
It's not much, just a drop-down menu that allows the user to use ONLY their own adoptables.
The "Pet Spotlight Details" and replace entirely with this:
PHP Code:
<p><u>Pet Spotlight Details: </u></p>
<p>Favorite Pet ID:
<select name='favpet' id='favpet'>
<option value='' selected>No Pokemon Selected</option>";
// We need to stop here and fetch our adoptables...
$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");
$name=@mysql_result($result,$i,"name");
$article_content = $article_content."<option value='".$aid."'>".$name."</option>";
$i++;
}
$article_content = $article_content."</select>
</p>
<p>Favorite Pet Bio:
<textarea name='about' cols='45' rows='4' id='about'>".$about."</textarea>Here is a bio for your pet, the maximum number of characters you can use is 200. You can write whatever you want but abide by the </a href='tos.php'>ToS</a> and do NOT post content that involves an advertisement, vulgar language, or any other acts that could get your account banned. BBC is NOT useable for this.
</p>
<input name='act' type='hidden' id='act' value='moreprofile'>
</p>
<p>
<input type='submit' name='Submit' value='Submit Details'>
</p>
</form>";