Hello All-
I'm working on a document upload section for my website and I have the option to group files together that are of the same nature, IE W4 Forms, I-9 Forms, etc. So as of right now I'm looping through my DB and pulling the names of the files and filename, extension and grouping. Some files will have a grouping others will not. The files that are grouped together I would like to put them all together in a drop down menu list.
I'm wondering what type of loop statement I should use to do this.
Here is how I'm currently looping through the array:
$query = mssql_query("SELECT * FROM tbl ")
while($result = mssql_fetch_array($query)){
echo "<a href='files/$result[filename']'>$result[name]</a>";
}
Pretty standard but when I get to a file with a grouping I would like to change the output to a drop down menu list.
Any thoughts?
Thanks for the help!