SourceForge Logo
1.6.2: add_category


Description
This functions adds a category in the database.


Function call
add_cat ($ctitle);

Input
The function of the parameters is:

ParameterDescription
$ctitleThe title of the category.


Output
The output is the result of the add. Each resultvalue has the following description:

ValueDescription
0No errors, subcategory succesfully added.
1User not logged in.
2User don't have enough rights to add the category (status >= administrator).
3No ctitle given.
9Unknown database error.

« Previous | Index | Next »