SourceForge Logo
1.7.2: edit_category


Description
This functions updates the category in the database.


Function call
edit_cat ($cid, $username, $password, $ctitle);

Input
The function of the parameters is:

ParameterDescription
$cidThe ID of the category to edit.
$usernameThe username of the user who has rights to edit the subcategory.
$passwordThe password belonging to the user.
$ctitleThe title of the category.


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

ValueDescription
0No errors, subcategory succesfully edited.
1User not logged in.
2User don't have enough rights to edit the post (must be owner or status >= moderator).
3No ctitle given.
4No cid given.
5Invalid cid given.
9Unknown database error.

« Previous | Index | Next »