goma smile Posted April 17, 2012 Report Posted April 17, 2012 Kas šeit nepareizi kapēc neparādās current foreach($items_get as $item){ echo sprintf('<li><a href="/catalogy/%s" %s >%1$s <span style="font-size: 9px;color: #A8A8A8;">(%d)</span></a></li>', $item->items_name, ($_GET['id'] = $item->items_name ? ' class="curent" ' : ''), $item->items_totall); } Nenostrādā šis ($_GET['id'] = $item->items_name ? ' class="curent" ' : '') Quote
briedis Posted April 17, 2012 Report Posted April 17, 2012 Tagad apsēdies un tā kārtīgi padomā... if($_GET['id'] = $item->items_name){... kādos gadījumos šis izpildīsies un kas vispār notiks... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.