<?php
    defined('BASEPATH') OR exit('No direct script access allowed');
    
    class EventDetailsModel extends CI_Model 
    {
         function getEventDetails()
        { 
    			$this->db->order_by('eventDetailsID', 'ASC');
                $this->db->select("*");
                $this->db->from("tbleventdetails");
                $query = $this->db->get();
                return $query->result_array();
    		}
    	function updateEventDetails($prop, $eventDetailsID)
        {
            $this->db->where('eventDetailsID', $eventDetailsID);
    		return $this->db->update('tbleventdetails', $prop);
        }
    }
        
        
    
?>