PHP Learning notes: PHP Second-hand Trading market system

Source: Internet
Author: User
Tags datetime key create database
The database script execution statement for this example: source D:\test\2shou.sql;  
CREATE DATABASE IF not EXISTS 2shou COLLATE ' gb2312_chinese_ci ';
Use 2shou; CREATE TABLE IF not EXISTS bulletin (Id INT auto_increment PRIMARY KEY, Title varchar (m), Content varchar

(1000), posttime datetime, Poster varchar (50));
CREATE TABLE IF not EXISTS goodstype (typeid INT auto_increment PRIMARY KEY, TypeName VARCHAR (MB) not NULL

);
    CREATE TABLE IF not EXISTS goods (goodsid int auto_increment PRIMARY KEY, typeID int, saleorbuy TINYINT,  Goodsname VARCHAR, Goodsdetail VARCHAR (1000), ImageURL VARCHAR (m), Price VARCHAR (), StartTime DATETIME, Oldnew VARCHAR, Invoice VARCHAR (a), repaired VARCHAR (), carriage (), VARCHAR

Mode VARCHAR, Delivermode VARCHAR (m), Isover TINYINT, ownerID VARCHAR (m), Clicktimes INT);     CREATE TABLE IF not EXISTS Users (UserId VARCHAR), Userpwd VARCHAR (m), Name VARCHAR (Sex) TINYint, Address VARCHAR (+), postcode VARCHAR, Email VARCHAR (+), telephone VARCHAR (100),
Mobile VARCHAR (M), usertype TINYINT); INSERT into Users VALUES (' admin ', ' 111111 ', ' admin ', 1, ', ', ', ', ', ', ', ', ', ', ', 1);


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.