没法了 mysql插入html问题
$chat_content=$player[p_name]."向世人展示了<a class=\"display_item\" onclick=\"item_tips(this)\" title=\"$item_tips\">".$item[item_name]."</a>";
$item_tips是一大段的html代码
错误提示
the right syntax to use near 'class="display_item" onclick="item_tips(this)" title="<table style='border: m' at line 1 mysql error number: 1064
应该指的是里面含有单引号' 如果去掉title=\"$item_tips\" 就可以插入
那我现在要怎么样才能插入这段html代码 用了htmlentities和htmlspecialchars都不管用
急
$sql="insert into ks_chat (chat_readname,chat_content) values ('世界',$chat_content)";
急