Small Dictionary (PHP)

Source: Internet
Author: User

    1. Query the front page (enword.php)

2. Writing database operations Class (ewTool.class.php)

3. Write the Add foreground page (add.php)

4. The polygon DML statement code.

The above is the PHP code.

MySQL operation is also very important oh!

    1. Create a database

Create Database Php_dic;

2. Create a table

CREATE TABLE DIC (

dic_id int primary Key auto_increment,

Enword varchar (+) NOT null default ' ',

Chword varchar (+) not ull default ' '

) set character UTF8;

3. Setting the character set

Set names UTF8;

4. Setting the database table encoding and table encoding

ALTER DATABASE php_dic character set UTF8;

ALTER TABLE DIC character set UTF8;

Then you can query and add ~ ~

Small Dictionary (PHP)

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.