我试试这个代码如何从不同的表格(字段x)中选择所有字段?笨
function catstore($id)
{
$this->db->distinct();
$this->db->select('store_id');
$this->db->from('products');
//$this->db->join('products','products.store_id = products.store_id');
$this->db->where('cat_id', $id);
$result = $this->db->get();
return $result->result();
}
它只产生不同STORE_ID,但我想用基于STORE_ID不同行的表的所有列
推荐我的任何选项提前
谢谢
无法正常工作..... – 2012-08-09 12:45:00