Update detail.inc.php