Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined method CI_DB_mysql_driver::row()?
#8

[eluser]dudeami0[/eluser]
The from function does work, but it just adds the "from" to the query. So you could do

Code:
function check_email() {
   $query = $this->db
      ->select('email')
      ->from('user')
      ->where('email', $this->input->post('email'))
      ->get();
  
   return $query->result();
}

And it would work. Select(), from(), and where() are all used to build the query. get(), insert(), and update() execute queries based on what you gave it with select, from, and where before calling them.


Messages In This Thread
Fatal error: Call to undefined method CI_DB_mysql_driver::row()? - by El Forum - 11-24-2010, 10:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB