html代碼怎麼存入資料庫?

來源:互聯網
上載者:User
請問這樣的內容怎麼存入資料庫,我這些是採集到的內容,所以不一定。

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傳遞。
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.