Make sure that the number of columns in this line:
PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$new_name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender')");
is the same as the number of columns in your owned_adoptables table in your database. If they don't match up then the adoptable will never be inserted. :)