i want to update my database with new html code this it the query:
UPDATE `Pages` SET `content`= \' 6条回答 一生所求 (楼主) 2020-12-11 13:11 store your html content in one variable and use addslashes() when you are inserting it to database. $content=' ...some words.... .some words.... '; and write your query as below UPDATE `Pages` SET `content`=addslashes($content); Hope this will help you :) 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
store your html content in one variable and use addslashes() when you are inserting it to database.
$content=' ...some words.... .some words.... ';
...some words....
.some words....
and write your query as below
UPDATE `Pages` SET `content`=addslashes($content);
Hope this will help you :)