So for #2 you have added php code to your <li> tag to add the active class. This is still incorrect because when I view the source of the page after navigating to the new page it has:
<li class="dropdown"" active"
and it should have:
<li class="dropdown active"
The extra set of double quotes will prevent it from working. If you post the code you use to add that active class I can spot what needs to be changed if you are unable to.