Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ($row = mysqli_fetch_assoc($rowc)) {
- echo "<div class=\"icon-block\">";
- echo "<a href=\"categories.php?category_id={$row['name']}\" class =\"cyan-text\" style=\"font-weight: bold; text-transform: uppercase;\"> " . $row['name'] . "</a>";
- if($row['id'] === $category_id) {
- while ($r = mysqli_fetch_assoc($subcategories_list)) {
- echo "<div class=\"icon-block\">";
- echo "<a href=\"categories.php?category_id={$row['name']}&subcategory_id={$r['name']}\" class =\"cyan-text\" text-transform: uppercase;\"> " . $r['name'] . "</a>";
- echo "</div><br><br>";
- }
- }
- echo "</div><br>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement