SourceForge Logo
1.2.3: list_topics


Description
This functions returns a list (an array) of all the topics within the database which:
- belong to a given subcategorie
- are more recent than the given timestamp
- belong to the topicpage given

Function call
list_topics ($sid, $time, $page);

Input
The function of the parameters is:

ParameterDescription
$sidthe ID of the subcategory, in which the topics must be placed.
$timeonly newer topics than this timestamp will be retrieved.
$pagethe number of the page in which the topics are.


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

VarDescription
$row->tidthe ID of the topic.
$row->sidthe subcategory to which the topics belong.
$row->timestampthe starttimestamp of the topic.
$row->ttitlethe title of the topic.
$row->iconthe icon which must be used (note that this is a number).
$row->closedif "1" the topic is closed (no post can be added in here).
$row->num_poststhe number of posts in the topic
$row->timethe time of the latest post
$row->uidthe user ID of the topicstarter
$row->usernamethe username of the topicstarter

« Previous | Index | Next »