当前位置: 代码迷 >> PHP >> 急求php mysql中where的有关问题
  详细解决方案

急求php mysql中where的有关问题

热度:48   发布时间:2016-04-29 00:26:21.0
急求php mysql中where的问题
请各位大侠帮我看看
$select = $this->db->select();
$select->from(PREFIX . $this->_table.' as s', '*');
$select->where($this->db->quoteInto('s.parent_category_id=?',$param->goods_category_id));
if($param->display_order){
  $select->where($this->db->quoteInfo('s.type_id in(1,2,3,4)')); 这一行不知道哪里错了
  $select->where($this->db->quoteInfo('s.display_order=?',$param->display_order));
}
新手求助,谢谢

------解决方案--------------------
$select->where($this->db->quoteInfo('s.type_id in(?)'), array(1,2,3,4));试一试
  相关解决方案