Guest User

Untitled

a guest
Jan 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public function get_where($table = '', $where = NULL, $limit = NULL, $offset = NULL)
  2. {
  3. if ($table !== '')
  4. {
  5. $this->from($table);
  6. }
  7.  
  8. if ($where !== NULL)
  9. {
  10. $this->where($where);
  11. }
  12.  
  13. if ( ! empty($limit))
  14. {
  15. $this->limit($limit, $offset);
  16. }
  17.  
  18. $result = $this->query($this->_compile_select());
  19. $this->_reset_select();
  20. return $result;
  21. }
  22.  
  23. $this->db->get_where('settings' , array('type' => 'site_name'))->row()->description;
Add Comment
Please, Sign In to add comment