Update trainer.php