goma smile Posted April 17, 2012 Report Share 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 Link to comment Share on other sites More sharing options...
briedis Posted April 17, 2012 Report Share 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 Link to comment Share on other sites More sharing options...
goma smile Posted April 17, 2012 Author Report Share Posted April 17, 2012 haha paldies :) Quote Link to comment Share on other sites More sharing options...
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.