Community (php & mysql) 6

Source: Internet
Author: User
This is bbs. sqlCREATETABLEbbs_area (& nbsp; idint (10) success, & nbsp; mastervarchar (150) NOTNULL, & nbsp; bannervarchar (150) NOTNULL // This is 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', 'lower-order postpa', '', 'Jerry @ mail.jerry.com.tw ', 'master', '123 ');


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)
);

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 '2017-00-00 00:00:00 '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 '2017-00-00 00:00:00 '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)
);




// This is SQL. php3


$ SQL ['user'] = "root ";
$ SQL ['passwd'] = "";
$ SQL ['DB'] = "";
$ SQL ['host'] = "localhost ";

?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.