Updated result.php