SourceForge Logo
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:

ParameterDescription
$tidthe ID of the topic where the post belongs to.
$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 add. Each resultvalue has the following description:

ValueDescription
0No errors, post succesfully added.
1User not logged in.
2No or invalid text given.
3No tid given in URL.
4Invalid tid given in URL.
9Unknown database error.

« Previous | Index | Next »