<?php 
defined('BASEPATH') OR exit('No direct script access allowed');

class Settings_model extends CI_Model {
	
	public function _consruct(){
		parent::_construct();
	}
		
	function settings_viewing(){
		$query = $this->db->query(" SELECT * FROM `setting` order by id DESC ");
		if(!empty($query)){
			return $query->row_array();
		}
		return;
	}

	public function update_settings($data){
		$result = $this->db->update('setting', $data); 
		return $result;
	}
}
?>