Home  >  Article  >  Backend Development  >  新闻分类录入、显示系统_PHP

新闻分类录入、显示系统_PHP

WBOY
WBOYOriginal
2016-06-01 12:29:144862browse

本系统可以录入标题、内容、图片、相关软件,显示时会根据是否有有图片和相关软件来判断是否显示该项内容,打开页面显示的是最新的一片文章,点击目录会显示之前的文章。
建立channelimages和channelsoft目录,并把权限设为777。
*********************************
news表结构
*********************************
# Host: localhost Database : yourdb
# --------------------------------------------------------

#
# Table structure for table 'yourtable'
#

CREATE TABLE news(
id int(11) DEFAULT '0' NOT NULL auto_increment,
kind varchar(16),
title varchar(60),
content text,
pic varchar(30),
timer datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
soft varchar(30),
PRIMARY KEY (id),
KEY timer (timer)
);

*********************************
新闻录入文件:insert.htm
*********************************


新闻录入






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