|
1.6.5: add_post
Description
This functions adds a post to the database.
Function call
edit_post ($tid, $username, $password, $text, $icon, $enable_smilies);
Input
The function of the parameters is:
Parameter | Description |
$tid | the ID of the topic where the post belongs to. |
$username | the username of the user who has rights to edit the post |
$password | the password belonging to the user |
$text | the body of the post |
$icon | the ID of the icon belonging to the post |
$enable_smilies | "1" if smilies are enabled, "0" if not |
|
Output
The output is the result of the add. Each resultvalue has the following description:
Value | Description |
0 | No errors, post succesfully added. |
1 | User not logged in. |
2 | No or invalid text given. |
3 | No tid given in URL. |
4 | Invalid tid given in URL. |
9 | Unknown database error. |
|
|