</h4><hr> <?php $result = CategoryTable::get_categories($_SESSION["date"]); while ($row = $result->fetch_assoc()) { ?> <li class="list_category_li"> <span><?php echo $row["name"]; ?> </span> <input type="hidden" id="category_id" name="category_id" value="<?php echo $row['id']; ?> "> <span class="item_counter" id="total"><?php echo ItemTable::get_total_items($row['id'], $_SESSION["date"]); ?> </span> <span class="float_right" id="<?php echo $row['name'] . '_count'; ?> "><?php echo ItemTable::get_updated_items_count($row['id'], $_SESSION["date"]) . "/"; ?> </span> </li> <?php } ?> </ul> </div>