|
|
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:
| Parameter | Description |
| $cid | The ID of the category to edit. |
| $username | The username of the user who has rights to edit the subcategory. |
| $password | The password belonging to the user. |
| $ctitle | The title of the category. |
|
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 ctitle given. |
| 4 | No cid given. |
| 5 | Invalid cid given. |
| 9 | Unknown database error. |
|
|