SourceForge Logo
1.7.3: edit_subcategory


Description
This functions updates the subcategory in the database.


Function call
edit_subcat ($sid, $username, $password, $cid, $stitle, $description, $abbrev);

Input
The function of the parameters is:

ParameterDescription
$sidThe ID of the subcategory to edit.
$usernameThe username of the user who has rights to edit the subcategory.
$passwordThe password belonging to the user.
$cidThe category the subcategory belongs to.
$stitleThe title of the subcategory.
$descriptionA short description of the subcategory.
$abbrevThe abbreviation for the subcategory.


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 stitle given.
4No sid given.
5Invalid sid given.
6No cid given.
7Invalid cid given.
8No or invalid description given.
9Unknown database error.

« Previous | Index | Next »