I often use Oso forum, personally feel very good, so imitate Oso interface compiled a program, share with you.
The program consists of three parts, that is, display the subject information, display the forum information, increase the forum information, the theme and the forum content using master-slave table relationship.
The table structure is as follows:
drop table Fr_t_forumtitle;
CREATE TABLE Fr_t_forumtitle (
ID Integer,
State varchar (1),
Readcount Integer,
Replycount Integer,
Title varchar (100),
Createman varchar (20),
Replyman varchar (20),
Replytime datetime);
drop table fr_t_forumcontent;
CREATE TABLE Fr_t_forumcontent (
ID Integer,
Replyman varchar (20),
Replytime datetime,
Replyemail varchar (100),
Replyhttp varchar (100),
Replyface smallint,
Content text);
drop table Fr_t_parameter;
CREATE TABLE Fr_t_parameter (
Code varchar (10),
Name varchar (40),
Content varchar (10));
Insert into Fr_t_parameter (code,name,content) VALUES (' Pageline ', ' pagination ', ' 20 '); /* Adjust this parameter to modify the number of lines per page */
Program 1:mainforum.php
Current 1/2 Page 12 next page
The above describes the HP forum a simulation of Oso PHP Forum program (one) 1th 2 page, including the HP forum content, I hope to be interested in PHP tutorial friends helpful.