Alright this is how I would do it if I were you, it isn't anything Fancy but it get's the job done:
PHP Code:
<p>
<select name='owned_adoptables' id='owned_adoptables'>";
// We need to stop here and fetch their adoptables...
$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
$result = mysql_query($query);
$num = mysql_numrows($result);
//Loop out code
$i=0;
while ($i < $num) {
$aid=@mysql_result($result,$i,"aid");
$currentlevel=@mysql_result($result,$i,"currentlevel");
$name=@mysql_result($result,$i,"name");
$article_content = $article_content."<option value='".$aid."'>".$name." :: ".$currentlevel."</option>";
$i++;
}
$article_content = $article_content."</select>
</p><br>
If have any questions about just ask and I'll try my best to answer them.