欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

html代码怎么存入数据库?

程序员文章站 2022-05-04 17:31:36
...
请问这样的内容怎么存入数据库,我这些是采集到的内容,所以不一定。

Description:

This product is a compact size multiple power system that is designed to power or recharge batteries of variety of portable electronic devices including most smart phones, game consoles, digital cameras, MP3/MP4, bluetooth headsets while you travel. It is also a flashlight with high, Low, and SOS three models of light functions.

Specifications:
Battery type: Samsung 18650 Lithium-ion protection board
Flash Model: High/Low/SOS
Input: DC5V-700mA
Output: DC5V-1000mA
Led: Q5WD Cree
Luminous: 160lm
Shoot Distance: 200m
Charging time: 5hours

回复讨论(解决方案)

现在每次都只写了 你的字段类型是什么? 用 text/mediumtext 试试。

也可以考虑用base64编码一下,读出的时候解码。

你所描述的问题应该是由于引号而造成MySQL认为字段值已经结束。




是这个$miaoshu没传过去,传的就是 get 方式传递的数据量有限制,建议你用post传递。