【问题标题】:retrieve an sql request that contains html html tags检索包含 html html 标签的 sql 请求
【发布时间】:2013-10-26 18:20:35
【问题描述】:

Cakephp 2.4.1

表格:文章 字段:id;title;content;slug

大家好! 在我的数据库中,我有一些要检索的内容,其中包含一些 html 标签

。 但是当我想加载页面时什么都没有出现,但是当我删除这些标签时,内容就会加载。

在我的控制器中

public function index(){
$articles = $this->Article->find('all');
$this->set('articles', $articles);
// debug($posts);
// die();
}

【问题讨论】:

  • 当你var_dump($articles)时会发生什么?
  • 感谢 cal_b!我不知道出了什么问题,但现在一切正常

标签: html mysql cakephp-2.0


【解决方案1】:

我确实重启了mysql

rcmysql stop
rcmysql start

然后一切恢复正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-13
    • 2014-03-30
    • 1970-01-01
    • 2014-01-17
    • 2014-05-23
    • 1970-01-01
    • 2015-12-26
    相关资源
    最近更新 更多