Home >Backend Development >PHP Tutorial >HP Forum A PHP forum program that imitates OSO (Part 1) Page 1/2

HP Forum A PHP forum program that imitates OSO (Part 1) Page 1/2

WBOY
WBOYOriginal
2016-07-29 08:36:30979browse

I often use the oso forum, and I personally feel that it is quite good, so I compiled a program that imitated the oso interface and shared it with everyone.
The program consists of three parts, namely displaying topic information, displaying forum information, and adding forum information. The topic and forum content adopt a master-slave 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),
reply time 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','number of pages','20'); /* Adjust this parameter to modify the number of lines per page */
Program 1: mainforum.php


< ;link rel="STYLESHEET" type="text/css" href="fp_zhangcg.css">
Current page 1/2 12Next page

The above introduces HP Forum, a PHP forum program that imitates OSO (Part 1). Page 1/2 includes the content of HP Forum. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn