Please help, php + mysqlPHPcode & lt ;? Php $ con = mysql_connect (SAE_MYSQL_HOST_M. ':'. SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS); mysql_select_db (& quo for help, php + mysql
PHP code
The imgstore table is like this.
Imgnamevarchar (10000) utf8_general_ci no
Introducetextutf8_general_ci no
Why can only insert the name for, introduce is not inserted into the database?
------ Solution --------------------
Insert into imgstore (imgname, introduce) values ('for', 'test ')";
------ Solution --------------------
Insert into imgstore (imgname, introduce) SELECT 'for ', 'test'
------ Solution --------------------
Discussion
PHP code
$ Con = mysql_connect (SAE_MYSQL_HOST_M. ':'. SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS );
Mysql_select_db ("app_zqstudysae", $ con );
$ SQL = "insert into imgstore values ('for', 'test ')";
My ......
------ Solution --------------------
Mysql_query ($ SQL, $ con) or die (mysql_error ());
If any error occurs, post an error message.