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?