Fix the insert query! Try to use this one
PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender','$loggedinname', 'Happy', '$side', '$MAXHP', '$MAXHP', '$Attack', '$Defense', '$Speed', '$Evade', '$Element','$evolution','$evolutionlevel','$evolutionform', '$evolutionform2')");