Model Query
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Test_model extends CI_Model { public $todays_date; public function __construct() { parent::__construct(); date_default_timezone_set('Asia/Dhaka'); $this->todays_date = date("Y-m-d")." 00:00:00"; } /* Insert Query */ public function create_data($data) { return $this->db->insert('tbl_form', $data); } public function create_data($data) { return $this->db->insert_batch('tbl_form', $data); } public function create_data($data) { $query = $this->db->insert('tbl_form', $data); ...