the code for the body tag on the details page is off. edit:
<body
<?php echo($details1Recordset1->getColumnVal("project_name")); ?></body>
to:
<body>
<?php echo($details1Recordset1->getColumnVal("project_name")); ?></body>
Note the change of "<body" to "<body>".