public function create($email) { return $this->db->from('users')->insert(array('email' => $this->db->escape($email)))->execute(); }
public function getTalkById($talkId) { return $this->db->from('talks')->where('talk_id = ', $talkId)->one(); }
public function create($data) { $data['user_id'] = $_SESSION['user']['user_id']; return $this->db->from('comments')->insert($data)->execute(); }
public function getCategoryById($categoryId) { return $this->db->from('categories')->where('category_id = ', $categoryId)->one(); }