Specifications

FIGURE 29.2
There are three main parts of the blah-blah forum system.
A summary of the files in this application is shown in Table 29.1.
TABLE 29.1 Files in the Web Forum Application
Name Type Description
index.php Application The main page users will see when they enter
the site. Contains an expandable and collapsible
list of all the articles on the site.
new_post.php Application Form used for posting new articles.
store_new_post.php Application Stores articles entered in the new_post.php form.
view_post.php Application Displays an individual post and a list of the
replies to that post.
treenode_class.php Library Contains the treenode class, which we will use
to display the hierarchy of posts.
include_fns.php Library Brings all the other function libraries for this
application together (the other Library-type files
listed here).
data_valid_fns.php Library Data validation functions.
db_fns.php Library Database connectivity functions.
discussion_fns.php Library Functions for dealing with storing and retrieving
postings.
output_fns.php Library Functions for outputing HTML.
create_database.sql SQL SQL to set up the database required for this
application.
Lets go ahead and look at the implementation.
Building Web Forums
C
HAPTER 29
29
BUILDING WEB
FORUMS
715
Add a new articleView an article
Article list
(different views)
reply
35 7842 CH29 3/6/01 3:34 PM Page 715