Hmm, maybe...
PHP Code:
$query = "INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender')";
mysql_query($query);
$article_content = $article_content. $query."<p><img src='".$eggimage."'><br /><a href='myadopts.php'>Manage ".$name." now!</a>
It's type is ".$type." and it was born on ".$date."! You can change its name to your liking.</p>";