I want to add class current for every li when it is active using php (I am absolutely new with it). I have the following code:
<ul id="frumos">
<li {if $pagename eq "upcoming"} class="current" {/if}><a href="/upcoming.php?category=economic">Economic</a></li>
<li {if $pagename eq "/upcoming.php?category=other"} *(this doesn't work)* class="current" {/if}><a href="/upcoming.php?category=other">Freestyle</a></li>
<li><a href="/upcoming.php?category=social">Social</a></li>
</ul>
If i use {if $pagename eq "upcoming"}
it works fine but if I put {if $pagename eq "/upcoming.php?category=other"}
it doesn't work what structure should I use in this case?