急求php mysql中where的有关问题
Jun 13, 2016 pm 01:21 PM
急求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));试一试

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the differences between Huawei GT3 Pro and GT4?

Fix: Snipping tool not working in Windows 11

Asynchronous processing method of Select Channels Go concurrent programming using golang

How to Fix Can't Connect to App Store Error on iPhone

How to hide the select element in jquery

How to implement change event binding of select elements in jQuery

How to use the Where method in Laravel collections
