Displayed the names of categories from the database in the menu, used the trace code
<?php $categories_q = mysqli_query($connection, "SELECT * FROM `articles_categories` "); $categories = array(); while( $cat = mysqli_fetch_assoc($categories_q) ) { $categories[] = $cat; } ?> <?php foreach ( $categories as $cat ) { ?> <li><a href="/articles.php?categorie=<?php echo $cat['id']; ?>"><?php echo $cat['title']; ?></a></li> <?php } ?> Please tell me how to implement that from the menu in categories opened all the goods in this category.
When opening, the link is http: //app/articles.php? Categorie = 1 And the category number at the end changes depending on the category
By registering the category id number, but how to make all the products of this category open from there, now the link is simply not found