I am trying to make a dropdown menu of folders stored on a site. For example the top level would be a list of folders, and when the user hovers over the folder name, a dropdown appears so the user can see all of the files within. I'm very new to PHP and have tried a few things, but can't get the dropdowns to work. Any suggestions?
EDIT: Additional information from comments:
At the moment I'm using this, which displays the top layer, but it gets the contents of the folders to list in a dropdown, which is the problem. For the first layer I have
$thelist .= '<li><a target="frame" href="unzip/uncompressed/'.$file.'">'.$file.'</a></li>';
and can display all the contents of all the folders with
$thelist2 .= '<li><a target="frame" href="unzip/uncompressed/'.$file.'/'.$file2.'">'.$file2.'</a></li>';
I just can't get it to display in dropdowns.
I found the answer myself. Quote: