[!--quoteo(post=386966:date=Jun 22 2006, 04:25 PM:name=Eric_Ryk)--][div class=\'quotetop\']QUOTE(Eric_Ryk @ Jun 22 2006, 04:25 PM) [snapback]386966[/snapback][/div][div class=\'quotemain\'][!--quotec--] I'm going to assume that you are using MySQL, however if not you can work this around to your needs [code]$docs = mysql_query(..." ORDER BY dept"); $cur_dept = ""; while($row = mysql_fetch_assoc($docs)) { if($cur_dept != $row['dept']) { print $row['dept'] . "<br />"; $cur_dept = $row['dept']; } print $row['file_name'] . "<br />"; }[/code] [/quote] YOU ARE THE MAN!!!! Worked Perfectly, just gotta format a bit, but thats it spot on! Thanks so much! [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]