$this->db->->where($where)中$where为空时会出现错误?
$this->db->->where($where)中$where为空时会出现错误?如:
$result=$this->db->select($id)->select($name)->where($where)->get($table)->result_array();
$where为空是出现错误。
后面的版本是否可以改善这个问题?
或者有其他不做判断的处理方法?
$where 默认赋值为1, 也不行?
你试试$where = array(); jeongee 发表于 2011-8-6 19:24 static/image/common/back.gif
你试试$where = array();
果然厉害!
还有个问题,比如,$this->db->select($id,$name) 这样的话也出错,该怎么写? heokok 发表于 2011-8-8 10:58 static/image/common/back.gif
果然厉害!
还有个问题,比如,$this->db->select($id,$name) 这样的话也出错,该怎么写? ...
你去看看
$this->db->select();
使用说明,不要主观臆断
页:
[1]