yep thats what I need, however in that format I can't get it to work.... This field is already in the middle of a loop. Here is the code for it:
<?
$sql = mysql_query("SELECT $table2.emp_id,last_name,first_name,cur_date,time_saved,time_left,pay_type,
manager,$table2.dept
FROM $table2
LEFT JOIN $table
ON $table2.emp_id=$table.emp_id
$where$date_query
ORDER BY cur_date,dept,manager")
or die(mysql_error());
while($res = mysql_fetch_array($sql)) {
?>
<tr>
<td class=normal><?=$res['cur_date'];?></td>
<td class=normal><?=$res['dept'];?></td>
<td class=normal><?=$res['manager'];?></td>
<td class=normal><?=$res['emp_id'];?></td>
<td class=normal><?=$res['last_name'];?>, <?=$res['first_name'];?></td>
<td class=normal><?=$res['time_left'];?></td>
<td class=normal><?=$res['time_saved'];?></td>
<td class=normal><?=$res['pay_type'];?></td>
</tr><? } ?>
the field in question is $res['cur_date'];
I just want to print each unique date only 1 time in that field.
thanx!
Nico