<div class="product_header extra_pad"> <h3>Category</h3> </div> <ul class="vert-one"> <?php if ($category_id == 0) { ?> <li><a href="http://localhost:8888/eretail/index.php?category_id=0" title="CSS Menus" class="current">Home</a></li> <?php } else { ?> <li><a href="http://localhost:8888/eretail/index.php?category_id=0" title="CSS Menus" >Home</a></li> <?php } $result = $admin->getAllCategory(); while ($row = mysql_fetch_array($result)) { if ($row[0] == $category_id) { ?> <li><a href="http://localhost:8888/eretail/index.php?category_id=<?php echo $row[0]; ?> " title="CSS Menus" class="current"><?php echo ucfirst($row[1]); ?> </a></li> <?php } else { ?> <li><a href="http://localhost:8888/eretail/index.php?category_id=<?php echo $row[0];