【发布时间】:2014-08-27 21:24:13
【问题描述】:
如何在 codeigniter 中编写连接查询...我只想要这样的模型 Select query-
public function getData($col, $table, $where = array())
{
$this->db->select($col);
$this->db->from($table);
$this->db->where($where);
$query = $this->db->get();
$result = $query->result();
return $result;
}
请帮忙
【问题讨论】:
标签: php codeigniter mysql-workbench