<?php
    defined('BASEPATH') OR exit('No direct script access allowed');
    
    class WorkshopRegistrationModel extends CI_Model 
    {
       public function insertWorkshopRegistration($prop)
        {
            return $this->db->insert('tblparticipant', $prop);
        }
        
        function getWorkshopRegistration($prop)
        {
            $this->db->where('participantID', $prop);
            $this->db->select("*");
            $query=$this->db->get('tblparticipant');
            return $query->result_array();
		}
		
		function getWorkshopRegistrations()
        {
            $this->db->order_by('fullName', 'ASC');
            $this->db->select("*");
            $this->db->from("tblparticipant");
            $query=$this->db->get();
            return $query->result_array();
        }
    }