ÉçÇø(php&&mysql)Áù

5年以前  |  阅读数:942 次  |  编程语言:PHP 

//´ËΪbbs.sql

CREATE TABLE bbs_area (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
master varchar(150) NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
email varchar(50),
login varchar(20),
passwd varchar(20),
PRIMARY KEY (id)
);

INSERT INTO bbs_area VALUES ( '1', 'master', '°Q½×°Ï¤@', '', 'jerry@mail.jerry.com.tw', 'master', '111111');

CREATE TABLE bbs_sml (
id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
sid int(8) unsigned DEFAULT '0' NOT NULL,
email char(60) NOT NULL,
PRIMARY KEY (id),
KEY sid (sid),
KEY email (email)
);

CREATE TABLE bbs_subj (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
aid int(10) unsigned DEFAULT '0' NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
poster varchar(20) NOT NULL,
email varchar(50),
pip varchar(20) NOT NULL,
wdate datetime DEFAULT '1999-01-01 01:01:01' NOT NULL,
views int(8) unsigned DEFAULT '1' NOT NULL,
good int(2) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY aid (aid),
KEY good (good),
KEY wdate (wdate)
);

CREATE TABLE bbs_docs (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
aid int(10) unsigned DEFAULT '0' NOT NULL,
sid int(10) unsigned DEFAULT '0' NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
poster varchar(20) NOT NULL,
email varchar(50),
pip varchar(20) NOT NULL,
wdate datetime DEFAULT '1999-01-01 01:01:01' NOT NULL,
views int(8) unsigned DEFAULT '1' NOT NULL,
good int(2) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY aid (aid),
KEY good (good),
KEY wdate (wdate)
);

CREATE TABLE bbs_sel (
id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
sid int(8) unsigned DEFAULT '0' NOT NULL,
banner char(80) NOT NULL,
sel_0 char(80) NOT NULL,
sel_1 char(80) NOT NULL,
sel_2 char(80) NOT NULL,
sel_3 char(80) NOT NULL,
sel_4 char(80) NOT NULL,
sel_5 char(80) NOT NULL,
sel_6 char(80) NOT NULL,
sel_7 char(80) NOT NULL,
sn_0 int(8) DEFAULT '0' NOT NULL,
sn_1 int(8) DEFAULT '0' NOT NULL,
sn_2 int(8) DEFAULT '0' NOT NULL,
sn_3 int(8) DEFAULT '0' NOT NULL,
sn_4 int(8) DEFAULT '0' NOT NULL,
sn_5 int(8) DEFAULT '0' NOT NULL,
sn_6 int(8) DEFAULT '0' NOT NULL,
sn_7 int(8) DEFAULT '0' NOT NULL,
PRIMARY KEY (id)
);

//´ËΪsql.php3

<?
$sql['user']="root";
$sql['passwd']="¸e®Æ®w±K½X";
$sql['db']="¶ñ¤J§Aªº¸e®Æ®w¦WºÙ";
$sql['host']="localhost";

?>

 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例