Hello.
There is a code:
<?php $res = mysql_query("SELECT * FROM `wp_organisations` WHERE `o_category`=121"); while($row = mysql_fetch_assoc($res)){ echo '<span>' .$row['o_name']. '</span> <span>' .$row['o_phones']. '</span> <span>' .$row['o_address']. '</span><br>'; } ?> it is used to list by category. However, there are many categories, and I don’t want to write a separate file for each list with the above contents. How to make so that in part "WHERE o_category = X" instead of X from the list of links to the categories would be substituted the value of the category to which the user moves? Would there be a single output template for list output? Thank.