php - data insertion problem
伊谢尔伦
伊谢尔伦 2017-05-16 13:13:55
0
4
353

I'm a little speechless. It's such a simple statement, but I searched for a long time and couldn't find out why the data couldn't be inserted.

There is no problem with the local database. It should be a code problem, but I am blinded and cannot find the error. Please help me.



##There is no data at the end, the links are all normal, and there is no problem in submitting data from other web pages.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
漂亮男人

Finally I found the correct answer. declare is a system reserved keyword, so this database table cannot be used. . . After all, he is too young. . .

黄舟

Your MySQL port seems to be 3305, but you did not specify it. The default port is 3306.

巴扎黑

Do I need to specify the fields of the table?

phpcn_u1582

First of all, it is not recommended to use MySQL extension, it is unsafe, and PHP has been abandoned. Use MySQLi or PDO.

Secondly. If the execution fails, use mysql_error()
to obtain the error information.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!