Create viewdetails.php