connect(); //insert record $forum->addReply($id, $author, $message); //disconnect to db $forum->Disconnect($forumpointer); //Redirct to the display php header("Location: theTopic.php?id=".$id); ?>