如何编写这种mysql查询?

时间:2011-10-13 07:02:09

标签: mysql mysqli mysql5

您好我想写这种mysql查询。

select image_path, replace(replace(replace(description,\'/images/\',image_path),\'<![CDATA[\',\'\'),\']]>\',\'\') description from test_image_master where ...

如果我从php回显这个查询,它会显示如下

select image_path, replace(replace(replace(description,'/images/',image_path),'','') description from test_image_master where ...

缺少<![CDATA[]]>。因此查询无法正常工作。

我正在使用php和mysql。

我该如何解决这个问题。

请帮帮我。

1 个答案:

答案 0 :(得分:1)

不会错过。你只是无法从浏览器中看到,你可以查看html的来源。

相关问题