php-Shopping website development and design (II.)

Source: Internet
Author: User

2015-07-7

Today introduces the background database design of shopping website, the database is using MySQL

(1) Create a database in MySQL, named Test

(2) Three new data tables are created under test, respectively mismatch_user (User Information table), Goods (Commodity information table), Shop_car (Shopping cart information sheet)

(3) Add information for each table as follows:

Mismatch_user:

Where user_id is the user ID information, username is the user name, password is the login password, mail is the user mailbox.

Goods

Where name is the product name, price is the commodity value, image holds the location information of the picture, number is the remaining quantity of the goods, kind is the product type (there are three kinds of kind=1, 2, 3 respectively).

Shop_car:

Where username is the user name (used to indicate whose shopping cart this item is in), name is the commodity, price is the commodity, and image holds the location information.

php-Shopping website development and design (II.)

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.