SourceForge Logo
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:

ParameterDescription
$cidthe ID of the category of which the subcategories must be returned.


Output
The output is an array. Each row has the following structure:

VarDescription
$row->sidthe ID of the subcategory.
$row->cidthe ID of the category to which it belongs.
$row->moderator_onlyif "1" the subcategory is only accessible for modderators and administrators.
$row->stitlethe visible name of the subcategory.
$row->descriptionthe description of the subcategory.
$row->abbreva short (2-4 chars) abbreviation of the subcategory.
$row->num_topicsthe number of topics in this subcategory.
$row->num_poststhe number of posts in this subcategory.
$row->moderator_uidthe user ID of the moderator.
$row->moderator_usernamethe username of the moderator.
$row->pidthe ID of the most recent post in this subcategory.
$row->uidthe ID of the user who placed tha most recent topic in this subcategory.
$row->last_timestampthe timestampt of the most recent post in this subcategory.
$row->last_iconthe icon of the most recent topic in this subcategory.
$row->last_usernamethe username of the user who placed tha most recent topic in this subcategory.
$row->tidthe ID of the most recent topic in this subcategory.
$row->ttitlethe title of the most recent topic in this subcategory.

« Previous | Index | Next »