Having an issue here where the
$_SERVER['REQUEST_URI']
is spitting out:
/dev/nava2/store/index.php?route=product/product&product_id=48
the actual URL is /dev/nava2/store/index.php?route=product/product&product_id=48
obviously, the difference being the & on the top vs. the & on the bottom
full code looks like this:
$currentpage = $_SERVER['REQUEST_URI'];
$classic = "/dev/nava2/store/index.php?route=product/product&product_id=48";
if ($currentpage == $classic)
{ $classicclass = "current";
}
else { echo "";}
Any suggestions?
&is the html entity corresponding to&. You can obtain to original string back with html_entity_decode :