Thanks for you quick reply and for the help
I was actually in the right ball park in terms of what section I thought needed to be edited, I just couldnt figure it out as I was trying to get this to work
<td><a href='?sort=CostCode&order="(<?php echo $order == 'DESC'?> )" '>CostCode</a></td>
<td><a href='?sort=CostCode&order="(<?php echo $order == 'ASC'?> )" '>CostCode</a></td>
You dont seem to keep the echo $order in your response, just out of learning interest, how come?
Also in you statement about the "" and parethesis, so am I right in understanding that what your saying is that unless you are echo'ing or printing something via php, you dont need the "" or parenthesis as the html will automatically pick it up?