PHP base navigation help
<p>currently i have :</p>

<pre><code>$page = basename($_SERVER['REQUEST_URI']);

&lt;li&lt;?php if($page == 'index.php?page=product') print ' id="current"'; ?&gt;&gt;&lt;a href="index.php?page=product"&gt;Products&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>but however when url is something like index.php?page=product&amp;item=100</p>

<p>the class 'id=current' doesn't apply.</p>

<p>any workaround? </p>

<p>thank you for help.</p>
