(11-22-2014, 03:06 PM)Rufnex Wrote: Is there a method called "select_where_limit_orderby()" in your model?
hi i think I've found the bit your after but I'm really not sure what do do as I'm really new to all this
function index() {
$contant['class'] = "dashboard";
$contant['ptittle'] = "Repair My Motor";
$contant['services'] = $this->common_model->select_where('*', 'garage_services', array('status' => 1));
$contant['feedback'] = $this->common_model->select_where_limit_orderby('*', 'feed_back', array('status' => 1),'datetime','DESC',0,3);
$data['content'] = $this->load->view('home', $contant, true);
$this->load->view('template', $data);