SourceForge Logo
1.7.5: edit_post


Description
This functions updates the post in the database.


Function call
edit_post ($pid, $username, $password, $text, $icon, $enable_smilies);

Input
The function of the parameters is:

ParameterDescription
$pidthe ID of the post to edit
$usernamethe username of the user who has rights to edit the post
$passwordthe password belonging to the user
$textthe body of the post
$iconthe 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 edit. Each resultvalue has the following description:

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

« Previous | Index | Next »