Update ending.php