|
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:
Parameter | Description |
$sid | The ID of the subcategory to edit. |
$username | The username of the user who has rights to edit the subcategory. |
$password | The password belonging to the user. |
$cid | The category the subcategory belongs to. |
$stitle | The title of the subcategory. |
$description | A short description of the subcategory. |
$abbrev | The abbreviation for the subcategory. |
|
Output
The output is the result of the edit. Each resultvalue has the following description:
Value | Description |
0 | No errors, subcategory succesfully edited. |
1 | User not logged in. |
2 | User don't have enough rights to edit the post (must be owner or status >= moderator). |
3 | No stitle given. |
4 | No sid given. |
5 | Invalid sid given. |
6 | No cid given. |
7 | Invalid cid given. |
8 | No or invalid description given. |
9 | Unknown database error. |
|
|