【发布时间】:2011-10-22 15:26:45
【问题描述】:
我正在为我的应用程序使用 codeigniter,我有点困惑,我写了一些这样的查询:
public function checkemail($email) {
$this->db->select('email')->from('user')->where('email', $email);
}
但在 codeigniter 的手册(http://codeigniter.com/user_guide/database/active_record.html)中,他们谈到了 $this->db->get(); 我应该在 $this->db->select 查询之后添加它吗?
我的功能运行良好...
什么时候应该使用 get() ?
谢谢!
【问题讨论】: