小编exc*_*145的帖子

如何在3 $条件[]之间应用&&?在cakephp

在Cakephp中,如何在这些行之间添加"AND",$ conditions [] = codition1 && codition2 && condition3;

$conditions[]= array('Flight.from LIKE' => "%".$this->request->data['Flight']['from']."%");
$conditions[]= array('Flight.to LIKE' => "%".$this->request->data['Flight']['to']."%");
$conditions[]= array('Flight.date LIKE' => "%".$this->request->data['Flight']['date']."%");
Run Code Online (Sandbox Code Playgroud)

cakephp

1
推荐指数
1
解决办法
103
查看次数

标签 统计

cakephp ×1