I have to create a basic php forum.

I know there are free open source forums but i need to create it myself.

I have a entered a number of fixed topic names into mysql and echo them (select *) into a website table. next to the printed names i have button links which takes the user into the topic where they can view posts.

BUT

how would I allow the user to create a new topic. i can easily setup a submit form to add a new topic name but i need the new data to reproduce a link button/text and even better a new page with with a blank table until posts are entered.

i hope this makes sense and thanks for any help.

Member Avatar for diafol

Sorry this doesn't make much sense to me. If you post your DB table structure and an idea of which pages you have.

I would assume you have the following:

forum.php (list of topics)
topic.php (list of posts in specified topic)
post.php (form for adding/editing posts)

should be enough for a simple forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.