currently i have :
$page = basename($_SERVER['REQUEST_URI']);
<li<?php if($page == 'index.php?page=product') print ' id="current"'; ?>><a href="index.php?page=product">Products</a></li>
but however when url is something like index.php?page=product&item=100
the class ‘id=current’ doesn’t apply.
any workaround?
thank you for help.
if($_GET['page'] == 'product')instead ofif($page == 'index.php?page=product')