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