Think my code is slightly different - so I've tried the above, but the syntax doesn't seem quite right, as the code is colouring wrongly ion DW suggesting something isn't right.
The code I have on the results page where the link is to the details page looks like :
<?php do { ?>
<tr>
<td class="idcell"><?php echo $row_Candidates['CandidateID']; ?></td>
<td class="fieldcell"><a href="candidateSearchDetails.php?CandidateID=<?php echo $row_Candidates['CandidateID']; ?>"><?php echo $row_Candidates['FirstName']; ?> <?php echo $row_Candidates['LastName']; ?></a></td>
<td class="fieldcell"><?php echo $row_Candidates['Telephone']; ?></td>
<td class="idcell"><div class="editdetails"><a href="editCandidate.php?CandidateID=<?php echo $row_Candidates['CandidateID']; ?>"><img src="../Images/edit7.gif" border="0" width="28px" height="18px" /></a></div></td>
<td class="idcell"><div class="editprofile"><a href="editCanProfiles.php?CandidateID=<?php echo $row_Candidates['CandidateID']; ?>"><img src="../Images/profile5.gif" border="0" /></a></div></td>
<td class="idcell"><div class="delete"><a href="confirmCanDeletion.php?CandidateID=<?php echo $row_Candidates['CandidateID']; ?>"><img src="../Images/delete7.gif" border="0" /></a></div></td>
</tr>
</tr>
<?php } while ($row_Candidates = mysql_fetch_assoc($Candidates)); ?>
The closest I can make it is :
<a href="candidateDetails.php?CandidateID=<?php echo $row_Candidates['CandidateID']; ?> . '&search =' . url_encode($_GET['search']) . ' "><?php echo $row_Candidates['FirstName']; ?> <?php echo $row_Candidates['LastName']; ?></a>
But that's giving an error message (on the SQL, which is working fine without adding the & etc, so presume it's this code that isn't quite right.