|
1.2.2: list_subcategories
Description
This functions returns a list (an array) of all the subcategories within the database
which belong to a given categorie.
Function call
list_subcategories($cid);
Input
The function of the parameters is:
| Parameter | Description |
| $cid | the ID of the category of which the subcategories must be returned. |
|
Output
The output is an array. Each row has the following structure:
| Var | Description |
| $row->sid | the ID of the subcategory. |
| $row->cid | the ID of the category to which it belongs. |
| $row->moderator_only | if "1" the subcategory is only accessible for modderators and administrators. |
| $row->stitle | the visible name of the subcategory. |
| $row->description | the description of the subcategory. |
| $row->abbrev | a short (2-4 chars) abbreviation of the subcategory. |
| $row->num_topics | the number of topics in this subcategory. |
| $row->num_posts | the number of posts in this subcategory. |
| $row->moderator_uid | the user ID of the moderator. |
| $row->moderator_username | the username of the moderator. |
| $row->pid | the ID of the most recent post in this subcategory. |
| $row->uid | the ID of the user who placed tha most recent topic in this subcategory. |
| $row->last_timestamp | the timestampt of the most recent post in this subcategory. |
| $row->last_icon | the icon of the most recent topic in this subcategory. |
| $row->last_username | the username of the user who placed tha most recent topic in this subcategory. |
| $row->tid | the ID of the most recent topic in this subcategory. |
| $row->ttitle | the title of the most recent topic in this subcategory. |
|
|