Problems with using mysql statements in dreamweaver

Source: Internet
Author: User
Create a new php file saveaddleibie. php in Dreamweaver. The code is as follows: of course, the conn. php file in the conn folder is also written. Open saveaddleibie. php with DW. after running by F12, insert data to the tb_type table of the database. However, the result is unsolvable. only the insert is successful & #39; id & #39; column 3, & #39; typename & #39; Column & #39; mechanical & #39; no insertion successful. For more information, see the command line query. Example :! [Image description] (img. ask. csdn. netupload2015 mysqldreamweaver

Create a new php file saveaddleibie. php in Dreamweaver. The code is as follows:
Include ("conn/conn. php ");
Mysql_query ("insert into tb_type (Id,Typename) Values ('3', 'mechanically ') ", $ conn );
?>
Of course, the conn. php file in the conn folder is also written. Open saveaddleibie. php with DW. after running by F12, insert data to the tb_type table of the database. However, the result is unsolvable. only 3 of the successful 'id' column is inserted,
The 'mechanical 'of the 'typename' column is not inserted successfully. For more information, see the command line query. For example:

But I entered the statement insert into tb_type (Id,Typename) After values ('3', 'mechanically,
Both columns can be inserted normally. What should I do to insert two columns of data in DW mode?

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.