做一个信息发布功能

发表于:2007-06-21来源:作者:点击数: 标签:
PHP 代码:-------------------------------------------------------------------------------- CREATE TABLE `jb_administrators` ( `administratorsID` int(10) unsigned NOT NULL auto_increment, `userID` mediumint(6) unsigned NOT NULL default 0, `a

   
   PHP代码:--------------------------------------------------------------------------------
CREATE TABLE `jb_administrators` (
`administratorsID` int(10) unsigned NOT NULL auto_increment,

`userID` mediumint(6) unsigned NOT NULL default '0',
`administratorsGroupID` int(10) unsigned NOT NULL default '0',
`administratorsName` varchar(50) NOT NULL default '',
`password` varchar(32) NOT NULL default '',
`email` varchar(50) NOT NULL default '',
`ipAddress` varchar(32) NOT NULL default '',
`isAdministrators` enum('y','n') NOT NULL default 'n',
`orderByID` int(10) unsigned NOT NULL default '0',
`createDate` bigint(14) unsigned NOT NULL default '0',
PRIMARY KEY (`administratorsID`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

#
# 导出表中的数据 `jb_administrators`
#

INSERT INTO `jb_administrators` VALUES (1, 1, 1, 'sky', 'sky', '', '', 'n', 0, 0);
# --------------------------------------------------------

#
# 表的结构 `jb_administratorsoption`
#
# 创建时间: 2003 年 07 月 16 日 15:02
# 最后更新时间: 2003 年 07 月 16 日 15:23
#

CREATE TABLE `jb_administratorsoption` (
`administratorsOptionID` int(8) NOT NULL auto_increment,
`userID` mediumint(6) unsigned NOT NULL default '0',
`optionFieldName` varchar(50) NOT NULL default '',
`length` tinyint(2) unsigned NOT NULL default '40',
`rows` tinyint(2) unsigned NOT NULL default '4',
`types` varchar(10) NOT NULL default '',
`isPublic` enum('y','n') NOT NULL default 'y',
`orderByID` int(8) unsigned NOT NULL default '0',
PRIMARY KEY (`administratorsOptionID`)
) TYPE=MyISAM AUTO_INCREMENT=10 ;

#
# 导出表中的数据 `jb_administratorsoption`
#

INSERT INTO `jb_administratorsoption` VALUES (8, 1, '57777', 40, 50, 'text', 'y', 8);
INSERT INTO `jb_administratorsoption` VALUES (9, 1, '联系电话', 40, 0, 'text', 'y', 9);
# --------------------------------------------------------

#
# 表的结构 `jb_administratorsoptionlist`
#
# 创建时间: 2003 年 07 月 16 日 20:25
# 最后更新时间: 2003 年 07 月 16 日 20:25
#

CREATE TABLE `jb_administratorsoptionlist` (
`administratorsOptionListID` int(12) unsigned NOT NULL auto_increment,
`userID` mediumint(6) unsigned NOT NULL default '0',
`administratorsID` int(10) unsigned NOT NULL default '0',
`administratorsOptionID` int(8) unsigned NOT NULL default '0',
`value` text NOT NULL,
`createDate` int(14) unsigned NOT NULL default '0',
PRIMARY KEY (`administratorsOptionListID`)
) TYPE=MyISAM AUTO_INCREMENT=168 ;

#
# 导出表中的数据 `jb_administratorsoptionlist`
#

原文转自:http://www.ltesting.net