{"id":2192,"date":"2018-01-03T11:20:18","date_gmt":"2018-01-03T04:20:18","guid":{"rendered":"http:\/\/devbanban.com\/?p=2192"},"modified":"2018-01-03T11:20:50","modified_gmt":"2018-01-03T04:20:50","slug":"codeigniter-crud-product-upload-image","status":"publish","type":"post","link":"https:\/\/devbanban.com\/?p=2192","title":{"rendered":"Codeigniter : CRUD product and upload image"},"content":{"rendered":"<p><strong>Codeigniter : Insert product and upload image<\/strong> <!--more--><\/p>\n<p>Controllers\u00a0 prd.php<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\ndefined('BASEPATH') OR exit('No direct script access allowed');\r\nclass prd extends CI_Controller\r\n{\r\n\r\n\tpublic function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t\t$this-&gt;load-&gt;library('pagination');\r\n\t\t\/\/$this-&gt;load-&gt;model('Imgtype_model');\r\n\t\t$this-&gt;load-&gt;model('prd_model');\r\n\t}\r\n\r\n\tpublic function index()\r\n\t{\r\n\t\t$config = array();\r\n\t\t$config['base_url'] = base_url('imgtype\/index');\r\n\t\t$config['total_rows'] = $this-&gt;prd_model-&gt;record_count($this-&gt;input-&gt;get('keyword'));\r\n\t\t$config['per_page'] = $this-&gt;input-&gt;get('keyword') == NULL ? 14 : 999;\r\n\t\t$config['uri_segment'] = 3;\r\n\t\t$choice = $config['total_rows'] \/ $config['per_page'];\r\n\t\t$config['num_links'] = round($choice);\r\n\r\n\t\t$this-&gt;pagination-&gt;initialize($config);\r\n\r\n\t\t$page = ($this-&gt;uri-&gt;segment(3)) ? $this-&gt;uri-&gt;segment(3) : 0;\r\n\t\t$data['results'] = $this-&gt;prd_model-&gt;fetch_prd($config['per_page'], $page, $this-&gt;input-&gt;get('keyword'));\r\n\t\t$data['link'] = $this-&gt;pagination-&gt;create_links();\r\n\t\t$data['total_rows'] = $config['total_rows'];\r\n\t\t$this-&gt;load-&gt;view('template\/backheader');\r\n\t\t$this-&gt;load-&gt;view('prd\/mainpage', $data);\r\n\t\t$this-&gt;load-&gt;view('template\/backfooter');\r\n\t}\r\n\r\n\r\n\r\n\/\/show select list imgtype  for from add \r\npublic function newdata()\r\n\t{\r\n\t\t$data['results'] = $this-&gt;Imgtype_model-&gt;fetch_imgtype(0,0,'');\r\n\t\t$this-&gt;load-&gt;view('template\/backheader');\r\n\t\t$this-&gt;load-&gt;view('prd\/newdata',$data);\r\n\t\t$this-&gt;load-&gt;view('template\/backfooter');\r\n\t}\r\n\r\n\r\n\r\n\r\npublic function adding($value='')\r\n\t{\r\n\t\t         $config['upload_path'] = '.\/uploads\/';\r\n\t\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\t$config['max_size']     = '2000';\r\n\t\t\t$config['max_width'] = '2000';\r\n\t\t\t$config['max_height'] = '2000';\r\n\r\n                $this-&gt;load-&gt;library('upload', $config);\r\n\r\n                if ( ! $this-&gt;upload-&gt;do_upload('img'))\r\n                {\r\n                        \/\/$error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());\r\n                        echo $this-&gt;upload-&gt;display_errors();\r\n                        \/\/$this-&gt;load-&gt;view('upload_form', $error);\r\n                }\r\n                else\r\n                {\r\n                        \r\n                        $data = $this-&gt;upload-&gt;data();\r\n\r\n                        \/\/print_r($data);\r\n                        \/\/$this-&gt;load-&gt;view('upload_success', $data);\r\n\r\n                        $filename = $data['file_name'];\r\n                        \/\/$imgtype_name = $data['imgtype_name'];\r\n\r\n                        $arr=array(\r\n                        \t\t'img_name'=&gt; $this-&gt;input-&gt;post('img_name'),\r\n                        \t\t'img_detail'=&gt; $this-&gt;input-&gt;post('img_detail'),\r\n                        \t\t'img_price'=&gt; $this-&gt;input-&gt;post('img_price'),\r\n                        \t\t'imgtype_id'=&gt; $this-&gt;input-&gt;post('imgtype_id'),\r\n                        \t\t\"img\"=&gt;$filename\r\n                        \t);\r\n                        $this-&gt;db-&gt;insert('img',$arr);\r\n\r\n                        $this-&gt;session-&gt;set_flashdata(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'msginfo'=&gt;'&lt;div class=\"pad margin no-print\"&gt;&lt;div style=\"margin-bottom: 0!important;\" class=\"callout callout-info\"&gt;&lt;h4&gt;&lt;i class=\"fa fa-info\"&gt;&lt;\/i&gt; \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e08\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a&lt;\/h4&gt;\u0e17\u0e33\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08&lt;\/div&gt;&lt;\/div&gt;'\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n                        redirect('prd', 'refresh');\r\n\r\n                }\r\n\t}\r\n\r\n\r\n\r\npublic function update($value='')\r\n\t{\r\n\t\t\r\n            $config['upload_path'] = '.\/uploads\/';\r\n\t\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\t$config['max_size']     = '2000';\r\n\t\t\t$config['max_width'] = '2000';\r\n\t\t\t$config['max_height'] = '2000';\r\n\r\n                $this-&gt;load-&gt;library('upload', $config);\r\n\r\n\r\n                \/\/print_r($_POST);\r\n\r\n                \/\/exit();\r\n\r\n                if ( ! $this-&gt;upload-&gt;do_upload('img'))\r\n                {\r\n                        \/\/$error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());\r\n                        \/\/echo $this-&gt;upload-&gt;display_errors();\r\n                        \/\/$this-&gt;load-&gt;view('upload_form', $error);\r\n\r\n\r\n\t\t\t\t$arr1=array(\r\n                        \t\t'img_name'=&gt; $this-&gt;input-&gt;post('img_name'),\r\n                        \t\t'img_detail'=&gt; $this-&gt;input-&gt;post('img_detail'),\r\n                        \t\t'img_price'=&gt; $this-&gt;input-&gt;post('img_price'),\r\n                        \t\t'imgtype_id'=&gt; $this-&gt;input-&gt;post('imgtype_id'),\r\n                        \t\t\/\/'imgtype_id'=&gt; $this-&gt;input-&gt;post('imgtype_id'),\r\n                        \t\t\"img\"=&gt;$this-&gt;input-&gt;post('img2')\r\n                        \t\t\r\n                        \t);\r\n                        $this-&gt;db-&gt;where('img_id', $this-&gt;input-&gt;post('img_id'));\r\n                        $this-&gt;db-&gt;update('img', $arr1);\r\n\r\n\r\n               \t$this-&gt;session-&gt;set_flashdata( \t\t\r\n                \t\tarray(\r\n\t\t\t\t\t\t'msginfo'=&gt;'&lt;div class=\"pad margin no-print\"&gt;&lt;div style=\"margin-bottom: 0!important;\" class=\"callout callout-success\"&gt;&lt;h4&gt;&lt;i class=\"fa fa-info\"&gt;&lt;\/i&gt; \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e08\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a&lt;\/h4&gt;\u0e17\u0e33\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 [\u0e44\u0e21\u0e48\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e20\u0e32\u0e1e]&lt;\/div&gt;&lt;\/div&gt;'\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n                \tredirect('prd', 'refresh');\r\n\r\n\r\n                }\r\n                else\r\n                {\r\n                        \r\n                        $data = $this-&gt;upload-&gt;data();\r\n\r\n                       \/\/ print_r($data);\r\n                        \/\/$this-&gt;load-&gt;view('upload_success', $data);\r\n\r\n                        $filename = $data['file_name'];\r\n                        \/\/$imgtype_name = $data['imgtype_name'];\r\n\r\n                       \/*\r\n                        if($filename!=''){\r\n                        \techo \"has\";\r\n\r\n                        }else{\r\n                        \techo \"no\";\r\n                        }\r\n*\/\r\n                        \/\/exit();\r\n\r\n                        $arr=array(\r\n                        \t\t'img_name'=&gt; $this-&gt;input-&gt;post('img_name'),\r\n                        \t\t'img_detail'=&gt; $this-&gt;input-&gt;post('img_detail'),\r\n                        \t\t'img_price'=&gt; $this-&gt;input-&gt;post('img_price'),\r\n                        \t\t'imgtype_id'=&gt; $this-&gt;input-&gt;post('imgtype_id'),\r\n                        \t\t\/\/'imgtype_id'=&gt; $this-&gt;input-&gt;post('imgtype_id'),\r\n                        \t\t\"img\"=&gt;$filename\r\n                        \t);\r\n\r\n                         $this-&gt;db-&gt;where('img_id', $this-&gt;input-&gt;post('img_id'));\r\n                        $this-&gt;db-&gt;update('img', $arr);\r\n\r\n                        $this-&gt;session-&gt;set_flashdata(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'msginfo'=&gt;'&lt;div class=\"pad margin no-print\"&gt;&lt;div style=\"margin-bottom: 0!important;\" class=\"callout callout-info\"&gt;&lt;h4&gt;&lt;i class=\"fa fa-info\"&gt;&lt;\/i&gt; \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e08\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a&lt;\/h4&gt;\u0e17\u0e33\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08&lt;\/div&gt;&lt;\/div&gt;'\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n                       redirect('prd', 'refresh');\r\n\r\n                }\r\n\t}\r\n\r\n\r\n\r\n\r\n\tpublic function edit($img_id)\r\n\t{\r\n\t\t$data['results'] = $this-&gt;Imgtype_model-&gt;fetch_imgtype(0,0,'');\r\n\t\t$data['doc'] = $this-&gt;prd_model-&gt;read_prd($img_id);\r\n\t\t$this-&gt;load-&gt;view('template\/backheader');\r\n\t\t$this-&gt;load-&gt;view('prd\/edit',$data);\r\n\t\t$this-&gt;load-&gt;view('template\/backfooter');\r\n\t}\r\n\r\n\r\n\r\n\tpublic function confrm($img_id)\r\n\t{\r\n\t\t$data = array\r\n\t\t(\r\n\t\t\t'backlink'  =&gt; 'prd',\r\n\t\t\t'deletelink'=&gt; 'prd\/remove\/' . $img_id\r\n\t\t);\r\n\t\t$this-&gt;load-&gt;view('template\/backheader');\r\n\t\t$this-&gt;load-&gt;view('confrm',$data);\r\n\t\t$this-&gt;load-&gt;view('template\/backfooter');\r\n\t}\r\n\r\n\tpublic function remove($img_id)\r\n\t{\r\n\t\t$this-&gt;prd_model-&gt;remove_prd($img_id);\r\n\t\tredirect('prd','refresh');\r\n\t}\r\n\r\n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>models\u00a0 prd_model.php<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\nclass Prd_model extends CI_Model\r\n{\r\n\r\n\tpublic $img_detail;\r\n\t\/\/public $description;\r\n\r\n\tpublic function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t}\r\n\r\n\tpublic function record_count($keyword)\r\n\t{\r\n\t\t$this-&gt;db-&gt;like('img_detail',$keyword);\r\n\t\t$this-&gt;db-&gt;from('img');\r\n\t\treturn $this-&gt;db-&gt;count_all_results();\r\n\t}\r\n\r\npublic function fetch_prd($limit, $start, $keryword)\r\n\t{\r\n\t\t$this-&gt;db-&gt;select('img.*,imgtype.imgtype_name');\r\n\t\t$this-&gt;db-&gt;from('img');\r\n\t\t$this-&gt;db-&gt;join('imgtype','imgtype.imgtype_id=img.imgtype_id');\r\n\t\t$this-&gt;db-&gt;like('img_detail', $keryword);\r\n\t\t$this-&gt;db-&gt;limit($limit, $start);\r\n\t\t$query = $this-&gt;db-&gt;get();\r\n\t\tif($query-&gt;num_rows() &gt; 0)\r\n\t\t{\r\n\t\t\tforeach($query-&gt;result() as $row)\r\n\t\t\t{\r\n\t\t\t\t$data[] = $row;\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}\r\n\r\n\r\npublic function fetch_prd2($limit, $start)\r\n\t{\r\n\t\t$this-&gt;db-&gt;select('img.*,imgtype.imgtype_name');\r\n\t\t$this-&gt;db-&gt;from('img');\r\n\t\t$this-&gt;db-&gt;join('imgtype','imgtype.imgtype_id=img.imgtype_id');\r\n\t\t$this-&gt;db-&gt;like('img_detail');\r\n\t\t$this-&gt;db-&gt;limit($limit, $start);\r\n\t\t$query = $this-&gt;db-&gt;get();\r\n\t\tif($query-&gt;num_rows() &gt; 0)\r\n\t\t{\r\n\t\t\tforeach($query-&gt;result() as $row)\r\n\t\t\t{\r\n\t\t\t\t$data[] = $row;\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}\r\n\r\n\r\n\r\n\tpublic function entry_prd($img_id)\r\n\t{\r\n\t\t$this-&gt;img_detail = $this-&gt;input-&gt;post('img_detail');\r\n\t\t\/\/$this-&gt;description = $this-&gt;input-&gt;post('description');\r\n\t\tif($img_id == NULL)\r\n\t\t{\r\n\t\t\t$this-&gt;db-&gt;insert('img', $this);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this-&gt;db-&gt;update('img', $this, array('img_id'=&gt; $img_id));\r\n\t\t}\r\n\t}\r\n\r\n\r\npublic function read_prd($img_id)\r\n\t{\r\n\t\t$this-&gt;db-&gt;select('img.*,imgtype.imgtype_name');\r\n\t\t$this-&gt;db-&gt;from('img');\r\n\t\t$this-&gt;db-&gt;join('imgtype','imgtype.imgtype_id=img.imgtype_id');\r\n\t\t$this-&gt;db-&gt;where('img.img_id', $img_id);\r\n\t\t$query = $this-&gt;db-&gt;get();\r\n\t\tif($query-&gt;num_rows() &gt; 0)\r\n\t\t{\r\n\t\t\t$data = $query-&gt;row();\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}\r\n\r\n\r\n\r\n\tpublic function remove_prd($img_id){\r\n\t\t$this-&gt;db-&gt;delete('img',array('img_id'=&gt;$img_id));\r\n\t}\r\n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>views\u00a0 (form insert) newdata.php<\/p>\n<pre class=\"lang:default decode:true \">&lt;div class=\"content-wrapper\"&gt;\r\n\t&lt;!-- Content Header (Page header) --&gt;\r\n\t&lt;section class=\"content-header\"&gt;\r\n\t\t&lt;h1&gt;\r\n\t\t\t \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\r\n\t\t\t \r\n\t\t&lt;\/h1&gt;\r\n\t\t&lt;ol class=\"breadcrumb\"&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo site_url('prd'); ?&gt;\"&gt;\r\n\t\t\t\t\t&lt;i class=\"fa fa-dashboard\"&gt;\r\n\t\t\t\t\t&lt;\/i&gt;\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo site_url('prd'); ?&gt;\"&gt;\r\n\t\t\t\t\t \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"active\"&gt;\r\n\t\t\t\t\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e21\u0e48\r\n\t\t\t&lt;\/li&gt;\r\n\t\t&lt;\/ol&gt;\r\n\t&lt;\/section&gt;\r\n\t&lt;!-- Main content --&gt;\r\n\t&lt;section class=\"content\"&gt;\r\n\t&lt;div class=\"container\"&gt;\r\n\t\t&lt;div class=\"row\"&gt;\r\n\t\t\t&lt;div class=\"col-sm-7\"&gt;\r\n\t\t&lt;!-- Your Page Content Here --&gt;\r\n\t\t&lt;div class=\"box box-primary\"&gt;\r\n\t\t\t&lt;div class=\"box-header with-border\"&gt;\r\n\t\t\t\t&lt;h3 class=\"box-title\"&gt;\r\n\t\t\t\t\t\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t&lt;\/h3&gt;\r\n\t\t\t&lt;\/div&gt;&lt;!-- \/.box-header --&gt;\r\n\t\t\t&lt;!-- form start --&gt;\r\n\t\t\t&lt;form role=\"form\" action=\"&lt;?php echo base_url('prd\/adding'); ?&gt;\" method=\"post\" enctype=\"multipart\/form-data\"&gt;\r\n\t\t\t\t&lt;div class=\"box-body\"&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_imgtype_id'); ?&gt;\r\n\t\t\t\t\t\t&lt;select class=\"form-control\" name=\"imgtype_id\"&gt;\r\n\t\t\t\t\t\t\t&lt;option value=\"\"&gt;\r\n\t\t\t\t\t\t\t\t\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t\t\t\t&lt;\/option&gt;\r\n\t\t\t\t\t\t\t&lt;?php\r\n\t\t\t\t\t\t\tforeach($results as $result){\r\n\t\t\t\t\t\t\t\t?&gt;\r\n\t\t\t\t\t\t\t\t&lt;option value=\"&lt;?php echo $result-&gt;imgtype_id; ?&gt;\"&gt;\r\n\t\t\t\t\t\t\t\t\t&lt;?php echo $result-&gt;imgtype_name; ?&gt;\r\n\t\t\t\t\t\t\t\t&lt;\/option&gt;\r\n\t\t\t\t\t\t\t\t&lt;?php\r\n\t\t\t\t\t\t\t} ?&gt;\r\n\t\t\t\t\t\t&lt;\/select&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e0a\u0e37\u0e48\u0e2d\u0e20\u0e32\u0e1e\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img_name'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"text\" id=\"img_name\" class=\"form-control\" name=\"img_name\" value=\"&lt;?php echo $this-&gt;session-&gt;flashdata('img_name'); ?&gt;\" required&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label&gt;\r\n\t\t\t\t\t\t\t\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\r\n\t\t\t\t\t\t&lt;\/label&gt;\r\n\t\t\t\t\t\t&lt;textarea rows=\"3\" class=\"form-control\" id=\"img_detail\" name=\"img_detail\" required&gt;&lt;?php echo $this-&gt;session-&gt;flashdata('img_detail'); ?&gt;&lt;\/textarea&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e23\u0e32\u0e04\u0e32 \r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img_price'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"number\" id=\"topic\" class=\"form-control\" name=\"img_price\" value=\"&lt;?php echo $this-&gt;session-&gt;flashdata('img_price'); ?&gt;\" required&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e20\u0e32\u0e1e\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"file\" name=\"img\" id=\"img\" &gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t\r\n\t\t\t\t&lt;\/div&gt;&lt;!-- \/.box-body --&gt;\r\n\r\n\t\t\t\t&lt;div class=\"box-footer\"&gt;\r\n\t\t\t\t\t&lt;button class=\"btn btn-primary\" type=\"submit\"&gt;\r\n\t\t\t\t\t\t&lt;i class=\"fa fa-fw fa-save\"&gt;\r\n\t\t\t\t\t\t&lt;\/i&gt;\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t\t&lt;\/button&gt;\r\n\t\t\t\t\t&lt;a class=\"btn btn-danger\" href=\"&lt;?php echo site_url('prd'); ?&gt;\" role=\"button\"&gt;\r\n\t\t\t\t\t\t&lt;i class=\"fa fa-fw fa-close\"&gt;\r\n\t\t\t\t\t\t&lt;\/i&gt;\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01\r\n\t\t\t\t\t&lt;\/a&gt;\r\n\t\t\t\t&lt;\/div&gt;\r\n\t\t\t&lt;\/form&gt;\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/section&gt;&lt;!-- \/.content --&gt;\r\n&lt;\/div&gt;&lt;!-- \/.content-wrapper --&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>views\u00a0 (List)\u00a0 mainpage.php<\/p>\n<pre class=\"lang:default decode:true \">&lt;div class=\"content-wrapper\"&gt;\r\n    &lt;!-- Content Header (Page header) --&gt;\r\n    &lt;section class=\"content-header\"&gt;\r\n        &lt;h1&gt;\r\n            \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\r\n        &lt;\/h1&gt;\r\n        &lt;ol class=\"breadcrumb\"&gt;\r\n            &lt;li&gt;&lt;a href=\"&lt;?php echo  base_url('prd'); ?&gt;\"&gt;&lt;i class=\"fa fa-dashboard\"&gt;&lt;\/i&gt; \u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li class=\"active\"&gt;\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32&lt;\/li&gt;\r\n        &lt;\/ol&gt;\r\n    &lt;\/section&gt;\r\n    &lt;!-- Top menu --&gt;\r\n    &lt;?php echo $this-&gt;session-&gt;flashdata('msginfo'); ?&gt;\r\n    &lt;!-- Main content --&gt;\r\n    &lt;section class=\"content\"&gt;\r\n        &lt;!-- Your Page Content Here --&gt;\r\n        &lt;div class=\"box\"&gt;\r\n            &lt;div class=\"box-header\"&gt;\r\n                &lt;h3 class=\"box-title\"&gt;\u0e15\u0e32\u0e23\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25&lt;\/h3&gt;\r\n            &lt;\/div&gt;&lt;!-- \/.box-header --&gt;\r\n            &lt;div class=\"box-body\"&gt;\r\n                &lt;div id=\"example1_wrapper\" class=\"dataTables_wrapper form-inline dt-bootstrap\"&gt;\r\n                    &lt;div class=\"row\"&gt;\r\n                        &lt;div class=\"col-sm-6\"&gt;\r\n                            &lt;a class=\"btn btn-success\" href=\"&lt;?php echo  base_url('prd\/newdata'); ?&gt;\" role=\"button\"&gt;&lt;i class=\"fa fa-fw fa-plus-circle\"&gt;&lt;\/i&gt; \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25&lt;\/a&gt;\r\n                            &lt;a class=\"btn btn-default\" href=\"&lt;?php echo  base_url('prd'); ?&gt;\" role=\"button\"&gt;&lt;i class=\"fa fa-fw fa-refresh\"&gt;&lt;\/i&gt; Refresh Data&lt;\/a&gt;\r\n                        &lt;\/div&gt;\r\n                        &lt;div class=\"col-sm-6\"&gt;\r\n                            &lt;div id=\"\" class=\"dataTables_filter\"&gt;\r\n                            &lt;form action=\"\" method=\"GET\" name=\"search\"&gt;\r\n                            \t&lt;label&gt;\u0e04\u0e49\u0e19\u0e2b\u0e32&lt;\/label&gt;:&lt;input type=\"search\" name=\"keyword\" class=\"form-control input-sm\" placeholder=\"\u0e04\u0e49\u0e19\u0e2b\u0e32\"&gt;&lt;\/label&gt;\r\n                            &lt;\/form&gt;\r\n                            &lt;\/div&gt;\r\n                        &lt;\/div&gt;\r\n                    &lt;\/div&gt;\r\n                    &lt;div class=\"row\"&gt;\r\n                        &lt;div class=\"col-sm-12\"&gt;\r\n                            &lt;table id=\"example1\" class=\"table table-bordered table-striped dataTable\" role=\"grid\" aria-describedby=\"example1_info\"&gt;\r\n                                &lt;thead&gt;\r\n                                    &lt;tr role=\"row\"&gt;\r\n                                        &lt;th class=\"sorting\" tabindex=\"0\"  rowspan=\"1\" colspan=\"1\" style=\"width: 20%;\"&gt;\u0e0a\u0e37\u0e2d\u0e20\u0e32\u0e1e&lt;\/th&gt;\r\n                                        &lt;th class=\"sorting\" tabindex=\"0\" rowspan=\"1\" colspan=\"1\"&gt;\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e20\u0e32\u0e1e &lt;\/th&gt;\r\n                                        &lt;th class=\"sorting\" tabindex=\"0\" rowspan=\"1\" colspan=\"1\"&gt;\u0e20\u0e32\u0e1e&lt;\/th&gt;\r\n\r\n                                        \r\n                                        &lt;th class=\"sorting\" tabindex=\"0\" rowspan=\"1\" colspan=\"1\" style=\"width:  60px;\"&gt;&amp;nbsp;&lt;\/th&gt;\r\n                                    &lt;\/tr&gt;\r\n                                &lt;\/thead&gt;\r\n                                &lt;tbody&gt;\r\n                                    &lt;?php if(!empty($results)){ foreach ($results as $data) { ?&gt;\r\n                                        &lt;tr role=\"row\"&gt;\r\n                                            &lt;td&gt;\r\n                                            &lt;a href=\"&lt;?php echo base_url('prd\/edit\/'.$data-&gt;img_id); ?&gt;\"&gt;\r\n                                            &lt;?php echo  $data-&gt;img_name; ?&gt;\r\n                                            &lt;\/a&gt; \r\n                                            &lt;br&gt;\r\n                                           \r\n                                            &lt;\/td&gt;\r\n                                            &lt;td&gt;\r\n                                             &lt;?php echo $data-&gt;img_detail; ?&gt;\r\n                                             [ \u0e23\u0e32\u0e04\u0e32 : &lt;?php echo  $data-&gt;img_price; ?&gt;]\r\n                                             &lt;br&gt;\r\n                                             \u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 : &lt;?php echo  $data-&gt;imgtype_name; ?&gt;\r\n                                             &lt;\/td&gt;\r\n                                             &lt;td&gt;\r\n\r\n                        &lt;a target=\"_blank\" href=\"&lt;?php echo  base_url('uploads\/'.$data-&gt;img); ?&gt;\"&gt;\r\n\r\n                                             &lt;img src=\"uploads\/&lt;?php echo $data-&gt;img; ?&gt;\" width=\"100px\"&gt;\r\n                                             &lt;\/a&gt;\r\n                                              \r\n                                            &lt;\/td&gt; \r\n                                            &lt;td&gt;\r\n                                            \t&lt;a class=\"btn btn-danger btn-xs\" href=\"&lt;?php echo  base_url('prd\/confrm\/'.$data-&gt;img_id); ?&gt;\" role=\"button\"&gt;&lt;i class=\"fa fa-fw fa-trash\"&gt;&lt;\/i&gt; \u0e25\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25&lt;\/a&gt;\r\n                                            &lt;\/td&gt;\r\n                                        &lt;\/tr&gt;\r\n                                    &lt;?php } } ?&gt;\r\n                                &lt;\/tbody&gt;\r\n\r\n                            &lt;\/table&gt;\r\n                        &lt;\/div&gt;\r\n                    &lt;\/div&gt;\r\n                    &lt;div class=\"row\"&gt;\r\n                        &lt;div class=\"col-sm-5\"&gt;\r\n                            &lt;div class=\"dataTables_info\" id=\"example1_info\" role=\"status\" aria-live=\"polite\"&gt;Total &lt;?php echo  $total_rows; ?&gt; entries&lt;\/div&gt;\r\n                        &lt;\/div&gt;\r\n                        &lt;div class=\"col-sm-7\"&gt;\r\n                            &lt;div id=\"example1_paginate\" class=\"dataTables_paginate paging_simple_numbers\"&gt;\r\n                                &lt;?php echo $link; ?&gt;\r\n                            &lt;\/div&gt;\r\n\r\n                        &lt;\/div&gt;\r\n                    &lt;\/div&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt;&lt;!-- \/.box-body --&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/section&gt;&lt;!-- \/.content --&gt;\r\n&lt;\/div&gt;&lt;!-- \/.content-wrapper --&gt;<\/pre>\n<p>views (form edit) edit.php<\/p>\n<pre class=\"lang:default decode:true\">&lt;div class=\"content-wrapper\"&gt;\r\n\t&lt;!-- Content Header (Page header) --&gt;\r\n\t&lt;section class=\"content-header\"&gt;\r\n\t\t&lt;h1&gt;\r\n\t\t\t \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\r\n\t\t\t \r\n\t\t&lt;\/h1&gt;\r\n\t\t&lt;ol class=\"breadcrumb\"&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo base_url(); ?&gt;\"&gt;\r\n\t\t\t\t\t&lt;i class=\"fa fa-dashboard\"&gt;\r\n\t\t\t\t\t&lt;\/i&gt;\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a href=\"&lt;?php echo base_url('prd'); ?&gt;\"&gt;\r\n\t\t\t\t\t \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"active\"&gt;\r\n\t\t\t\t\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e21\u0e48\r\n\t\t\t&lt;\/li&gt;\r\n\t\t&lt;\/ol&gt;\r\n\t&lt;\/section&gt;\r\n\t&lt;!-- Main content --&gt;\r\n\t&lt;section class=\"content\"&gt;\r\n\t\t&lt;!-- Your Page Content Here --&gt;\r\n\t\t&lt;div class=\"box box-primary\"&gt;\r\n\t\t\t&lt;div class=\"box-header with-border\"&gt;\r\n\t\t\t\t&lt;h3 class=\"box-title\"&gt;\r\n\t\t\t\t\t\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t&lt;\/h3&gt;\r\n\t\t\t&lt;\/div&gt;&lt;!-- \/.box-header --&gt;\r\n\t\t\t&lt;!-- form start --&gt;\r\n\t\t\t&lt;form role=\"form\" action=\"&lt;?php echo base_url('prd\/update'); ?&gt;\" method=\"post\" enctype=\"multipart\/form-data\"&gt;\r\n\t\t\t&lt;input type=\"hidden\" value=\"&lt;?php echo $doc-&gt;img_id; ?&gt;\" name=\"img_id\"&gt;\r\n\t\t\t&lt;input type=\"hidden\" value=\"&lt;?php echo $doc-&gt;img; ?&gt;\" name=\"img2\"&gt;\r\n\r\n\r\n\r\n\t\t\t\t&lt;div class=\"box-body\"&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_imgtype_id'); ?&gt;\r\n\t\t\t\t\t\t\t&lt;select class=\"form-control\" name=\"imgtype_id\"&gt;\r\n\t\t\t\t\t\t\t&lt;option value=\"\"&gt;\r\n\t\t\t\t\t\t\t\t\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t\t\t\t&lt;\/option&gt;\r\n\t\t\t\t\t\t\t&lt;?php\r\n\t\t\t\t\t\t\tforeach($results as $result){\r\n\t\t\t\t\t\t\t\t?&gt;\r\n\t\t\t\t\t\t\t\t&lt;option value=\"&lt;?php echo $result-&gt;imgtype_id; ?&gt;\" &lt;?php if($result-&gt;imgtype_id==$doc-&gt;imgtype_id){echo \"selected\"; } ?&gt;&gt;\r\n\t\t\t\t\t\t\t\t\t&lt;?php echo $result-&gt;imgtype_name; ?&gt;\r\n\t\t\t\t\t\t\t\t&lt;\/option&gt;\r\n\t\t\t\t\t\t\t\t&lt;?php\r\n\t\t\t\t\t\t\t} ?&gt;\r\n\t\t\t\t\t\t&lt;\/select&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e0a\u0e37\u0e48\u0e2d\u0e20\u0e32\u0e1e\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img_name'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"text\" id=\"img_name\" class=\"form-control\" name=\"img_name\" value=\"&lt;?php echo $doc-&gt;img_name; ?&gt;\"&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label&gt;\r\n\t\t\t\t\t\t\t\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\r\n\t\t\t\t\t\t&lt;\/label&gt;\r\n\t\t\t\t\t\t&lt;textarea rows=\"3\" class=\"form-control\" id=\"img_detail\" name=\"img_detail\"&gt;&lt;?php echo $doc-&gt;img_detail; ?&gt;&lt;\/textarea&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e23\u0e32\u0e04\u0e32 \r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img_price'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"number\" id=\"topic\" class=\"form-control\" name=\"img_price\" value=\"&lt;?php echo $doc-&gt;img_price; ?&gt;\"&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;div class=\"form-group\"&gt;\r\n\t\t\t\t\t\t&lt;label for=\"exampleInputEmail1\"&gt;\r\n\t\t\t\t\t\t\t\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e20\u0e32\u0e1e (&lt;a href=\"&lt;?php echo base_url('uploads\/' . $doc-&gt;img); ?&gt;\" target=\"_blank\"&gt; \u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e01\u0e48\u0e32 &lt;\/a&gt;)\r\n\t\t\t\t\t\t&lt;\/label&gt; &lt;?php echo $this-&gt;session-&gt;flashdata('err_img'); ?&gt;\r\n\t\t\t\t\t\t&lt;input type=\"file\" name=\"img\" id=\"img\" &gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t\r\n\t\t\t\t&lt;\/div&gt;&lt;!-- \/.box-body --&gt;\r\n\r\n\t\t\t\r\n\r\n\t\t\t\t&lt;div class=\"box-footer\"&gt;\r\n\t\t\t\t\t&lt;button class=\"btn btn-primary\" type=\"submit\"&gt;\r\n\t\t\t\t\t\t&lt;i class=\"fa fa-fw fa-save\"&gt;\r\n\t\t\t\t\t\t&lt;\/i&gt;\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\r\n\t\t\t\t\t&lt;\/button&gt;\r\n\t\t\t\t\t&lt;a class=\"btn btn-danger\" href=\"&lt;?php echo base_url('document'); ?&gt;\" role=\"button\"&gt;\r\n\t\t\t\t\t\t&lt;i class=\"fa fa-fw fa-close\"&gt;\r\n\t\t\t\t\t\t&lt;\/i&gt;\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01\r\n\t\t\t\t\t&lt;\/a&gt;\r\n\t\t\t\t&lt;\/div&gt;\r\n\t\t\t&lt;\/form&gt;\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/section&gt;&lt;!-- \/.content --&gt;\r\n&lt;\/div&gt;&lt;!-- \/.content-wrapper --&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>..\/views\u00a0 confirm to delete data\u00a0 \u00a0 confrm.php<\/p>\n<pre class=\"lang:default decode:true \">&lt;div class=\"content-wrapper\"&gt;\r\n\t&lt;!-- Content Header (Page header) --&gt;\r\n\t&lt;section class=\"content-header\"&gt;\r\n\t&lt;\/section&gt;\r\n\t&lt;!-- Main content --&gt;\r\n\t&lt;section class=\"content\"&gt;\r\n\t\t&lt;!-- Your Page Content Here --&gt;\r\n\t\t&lt;div class=\"example-modal\"&gt;\r\n\t\t\t&lt;div class=\"modal\" style=\"display: block;\"&gt;\r\n\t\t\t\t&lt;div class=\"modal-dialog\"&gt;\r\n\t\t\t\t\t&lt;div class=\"modal-content\"&gt;\r\n\t\t\t\t\t\t&lt;div class=\"modal-header\"&gt;\r\n\t\t\t\t\t\t\t&lt;h4 class=\"modal-title\"&gt;\r\n\t\t\t\t\t\t\t\t\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\r\n\t\t\t\t\t\t\t&lt;\/h4&gt;\r\n\t\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t\t&lt;div class=\"modal-body\"&gt;\r\n\t\t\t\t\t\t\t&lt;p&gt;\r\n\t\t\t\t\t\t\t\t\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e25\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48\r\n\t\t\t\t\t\t\t&lt;\/p&gt;\r\n\t\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t\t&lt;div class=\"modal-footer\"&gt;\r\n\t\t\t\t\t\t\t&lt;a class=\"btn btn-default pull-left\" href=\"&lt;?= base_url($backlink) ?&gt;\" role=\"button\"&gt;\r\n\t\t\t\t\t\t\t\t\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\r\n\t\t\t\t\t\t\t&lt;\/a&gt;\r\n\t\t\t\t\t\t\t&lt;a class=\"btn btn-primary\" href=\"&lt;?= base_url($deletelink) ?&gt;\" role=\"button\"&gt;\r\n\t\t\t\t\t\t\t\t\u0e43\u0e0a\u0e48 \u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e01\u0e32\u0e23\u0e25\u0e1a\r\n\t\t\t\t\t\t\t&lt;\/a&gt;\r\n\t\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;\/div&gt;&lt;!-- \/.modal-content --&gt;\r\n\t\t\t\t&lt;\/div&gt;&lt;!-- \/.modal-dialog --&gt;\r\n\t\t\t&lt;\/div&gt;&lt;!-- \/.modal --&gt;\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/section&gt;&lt;!-- \/.content --&gt;\r\n&lt;\/div&gt;&lt;!-- \/.content-wrapper --&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codeigniter : Insert product and upload image<\/p>\n","protected":false},"author":1,"featured_media":2184,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[164],"tags":[165,167,166,168],"class_list":["post-2192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codeigniter","tag-codeigniter","tag-controllers","tag-models","tag-views"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]<\/title>\n<meta name=\"description\" content=\"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devbanban.com\/?p=2192\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\" \/>\n<meta name=\"twitter:description\" content=\"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192\"},\"author\":{\"name\":\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/#\\\/schema\\\/person\\\/aa637e5a6aefe44e0dbfcac2b429fcc3\"},\"headline\":\"Codeigniter : CRUD product and upload image\",\"datePublished\":\"2018-01-03T04:20:18+00:00\",\"dateModified\":\"2018-01-03T04:20:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192\"},\"wordCount\":48,\"image\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/devbanban.com\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/Data-cd.jpg?fit=960%2C720&ssl=1\",\"keywords\":[\"codeigniter\",\"controllers\",\"models\",\"views\"],\"articleSection\":[\"Codeigniter\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192\",\"url\":\"https:\\\/\\\/devbanban.com\\\/?p=2192\",\"name\":\"Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/devbanban.com\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/Data-cd.jpg?fit=960%2C720&ssl=1\",\"datePublished\":\"2018-01-03T04:20:18+00:00\",\"dateModified\":\"2018-01-03T04:20:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/#\\\/schema\\\/person\\\/aa637e5a6aefe44e0dbfcac2b429fcc3\"},\"description\":\"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devbanban.com\\\/?p=2192\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/devbanban.com\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/Data-cd.jpg?fit=960%2C720&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/devbanban.com\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/Data-cd.jpg?fit=960%2C720&ssl=1\",\"width\":960,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/?p=2192#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devbanban.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Codeigniter : CRUD product and upload image\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/#website\",\"url\":\"https:\\\/\\\/devbanban.com\\\/\",\"name\":\"\u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]\",\"description\":\"\u0e2a\u0e2d\u0e19\u0e40\u0e02\u0e35\u0e22\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 \u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e40\u0e27\u0e35\u0e22\u0e19 \u0e23\u0e30\u0e1a\u0e22\u0e37\u0e21\u0e04\u0e37\u0e19\u0e04\u0e23\u0e38\u0e20\u0e31\u0e13\u0e11\u0e4c \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e25\u0e31\u0e07\u0e02\u0e49\u0e2d\u0e2a\u0e2d\u0e1a \u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e0b\u0e48\u0e2d\u0e21 \u0e23\u0e30\u0e1a\u0e1a\u0e27\u0e34\u0e08\u0e31\u0e22 \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e23\u0e49\u0e2d\u0e21 Workshop PHP PDO MySQL \u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devbanban.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/devbanban.com\\\/#\\\/schema\\\/person\\\/aa637e5a6aefe44e0dbfcac2b429fcc3\",\"name\":\"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35\",\"description\":\"\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e19\u0e43\u0e08\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e25\u0e30\u0e2d\u0e22\u0e32\u0e01\u0e41\u0e1a\u0e48\u0e07\u0e1b\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e41\u0e25\u0e30\u0e2d\u0e37\u0e48\u0e19\u0e46\u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22...\",\"sameAs\":[\"http:\\\/\\\/devbanban.com\\\/\"],\"url\":\"https:\\\/\\\/devbanban.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","description":"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devbanban.com\/?p=2192","twitter_card":"summary_large_image","twitter_title":"Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","twitter_description":"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap","twitter_image":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","twitter_misc":{"Written by":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devbanban.com\/?p=2192#article","isPartOf":{"@id":"https:\/\/devbanban.com\/?p=2192"},"author":{"name":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3"},"headline":"Codeigniter : CRUD product and upload image","datePublished":"2018-01-03T04:20:18+00:00","dateModified":"2018-01-03T04:20:50+00:00","mainEntityOfPage":{"@id":"https:\/\/devbanban.com\/?p=2192"},"wordCount":48,"image":{"@id":"https:\/\/devbanban.com\/?p=2192#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","keywords":["codeigniter","controllers","models","views"],"articleSection":["Codeigniter"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/devbanban.com\/?p=2192","url":"https:\/\/devbanban.com\/?p=2192","name":"Codeigniter : CRUD product and upload image - \u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","isPartOf":{"@id":"https:\/\/devbanban.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devbanban.com\/?p=2192#primaryimage"},"image":{"@id":"https:\/\/devbanban.com\/?p=2192#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","datePublished":"2018-01-03T04:20:18+00:00","dateModified":"2018-01-03T04:20:50+00:00","author":{"@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3"},"description":"\u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c, \u0e2a\u0e2d\u0e19\u0e17\u0e33 website, \u0e2a\u0e2d\u0e19 php, \u0e2a\u0e2d\u0e19 codeigniter , database, css, web app, sql, bootstrap","breadcrumb":{"@id":"https:\/\/devbanban.com\/?p=2192#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devbanban.com\/?p=2192"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devbanban.com\/?p=2192#primaryimage","url":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","width":960,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/devbanban.com\/?p=2192#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devbanban.com\/"},{"@type":"ListItem","position":2,"name":"Codeigniter : CRUD product and upload image"}]},{"@type":"WebSite","@id":"https:\/\/devbanban.com\/#website","url":"https:\/\/devbanban.com\/","name":"\u0e2a\u0e2d\u0e19\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 [PHP, SQL, Codeigniter, Bootstrap, HTML]","description":"\u0e2a\u0e2d\u0e19\u0e40\u0e02\u0e35\u0e22\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e1f\u0e23\u0e35 \u0e2a\u0e2d\u0e19\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e35\u0e04\u0e2d\u0e21\u0e40\u0e21\u0e34\u0e23\u0e4c\u0e0a \u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e40\u0e27\u0e35\u0e22\u0e19 \u0e23\u0e30\u0e1a\u0e22\u0e37\u0e21\u0e04\u0e37\u0e19\u0e04\u0e23\u0e38\u0e20\u0e31\u0e13\u0e11\u0e4c \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e25\u0e31\u0e07\u0e02\u0e49\u0e2d\u0e2a\u0e2d\u0e1a \u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e0b\u0e48\u0e2d\u0e21 \u0e23\u0e30\u0e1a\u0e1a\u0e27\u0e34\u0e08\u0e31\u0e22 \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1e\u0e23\u0e49\u0e2d\u0e21 Workshop PHP PDO MySQL \u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devbanban.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devbanban.com\/#\/schema\/person\/aa637e5a6aefe44e0dbfcac2b429fcc3","name":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","description":"\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e19\u0e43\u0e08\u0e40\u0e17\u0e04\u0e42\u0e19\u0e42\u0e25\u0e22\u0e35\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e25\u0e30\u0e2d\u0e22\u0e32\u0e01\u0e41\u0e1a\u0e48\u0e07\u0e1b\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e41\u0e25\u0e30\u0e2d\u0e37\u0e48\u0e19\u0e46\u0e2d\u0e35\u0e01\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22...","sameAs":["http:\/\/devbanban.com\/"],"url":"https:\/\/devbanban.com\/?author=1"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6bpqQ-zm","jetpack-related-posts":[{"id":2199,"url":"https:\/\/devbanban.com\/?p=2199","url_meta":{"origin":2192,"position":0},"title":"Codeigniter : Create Chart Report by date, week, month, year","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"03\/01\/2018","format":false,"excerpt":"Codeigniter : Create Chart Report by date, week, month, year controllers\u00a0 \u00a0Report.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Report extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('pagination'); $this->load->model('ChartModel'); $this->load->model('report_model'); } \/\/report by date public function index() { $config = array(); $config['base_url'] = base_url('report\/index'); $config['total_rows'] = $this->report_model->record_count($this->input->get('keyword'));\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2183,"url":"https:\/\/devbanban.com\/?p=2183","url_meta":{"origin":2192,"position":1},"title":"Codeigniter : Multiple image  Upload &#038; database","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"03\/01\/2018","format":false,"excerpt":"Codeigniter : Multiple image Upload example tables CREATE TABLE `photos` ( `id` int(11) NOT NULL, `image` varchar(350) NOT NULL, `user_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `user` ( `u_id` int(11) NOT NULL, `name` varchar(350) NOT NULL, `class` varchar(350) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `photos`\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3517,"url":"https:\/\/devbanban.com\/?p=3517","url_meta":{"origin":2192,"position":2},"title":"\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e32\u0e01 2 Input \u0e14\u0e49\u0e27\u0e22 CodeIgniter, How to upload two images into two fields using CodeIgniter","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"11\/05\/2020","format":false,"excerpt":"\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 code \u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e32\u0e01 2 Input \u0e14\u0e49\u0e27\u0e22 CodeIgniter \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Code \u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e32\u0e01 2 Input \u0e14\u0e49\u0e27\u0e22 CodeIgniter, How to upload two images into two fields using CodeIgniter table products CREATE TABLE `products` ( `id` int(5) NOT NULL, `p_img1` varchar(255) DEFAULT NULL, `p_img2` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `products` ADD\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2020\/05\/form_codeigniter-.png?fit=689%2C320&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2020\/05\/form_codeigniter-.png?fit=689%2C320&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2020\/05\/form_codeigniter-.png?fit=689%2C320&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2224,"url":"https:\/\/devbanban.com\/?p=2224","url_meta":{"origin":2192,"position":3},"title":"Codeigniter : Config upload file and  encrypt_name","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"05\/01\/2018","format":false,"excerpt":"Codeigniter : Config upload file\u00a0and encrypt_name Easy code to config\u00a0 \u00a0on upload file\u00a0 in codeigniter\u00a0 example code : $config['upload_path'] = '.\/uploads\/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '2000'; $config['max_width'] = '2000'; $config['max_height'] = '2000'; Description: destination path for store the file $config['upload_path'] = '.\/uploads\/'; allowed type file image file $config['allowed_types'] =\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2264,"url":"https:\/\/devbanban.com\/?p=2264","url_meta":{"origin":2192,"position":4},"title":"Codeigniter : How to customizing config.php  &#038; autoload.php","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"28\/01\/2018","format":false,"excerpt":"Codeigniter : How to customizing config.php and autoload for work. Basic to customizing config file from codeiginiter Ex. <?php defined('BASEPATH') OR exit('No direct script access allowed'); \/* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH a\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/01\/Data-cd.jpg?fit=960%2C720&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2901,"url":"https:\/\/devbanban.com\/?p=2901","url_meta":{"origin":2192,"position":5},"title":"config codeigniter multiple language","author":"\u0e1e\u0e34\u0e28\u0e34\u0e29\u0e10\u0e4c \u0e1a\u0e27\u0e23\u0e40\u0e25\u0e34\u0e28\u0e2a\u0e38\u0e18\u0e35","date":"14\/03\/2019","format":false,"excerpt":"config codeigniter multiple language controller <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home extends CI_Controller { public function __construct() { parent::__construct(); check_lang(); $this->load->model('mail_model'); } public function index() { $data['mails'] = $this->mail_model->get_all_mail(); $data['language']=$this->session->userdata('language'); \/\/ echo '<pre>'; \/\/ print_r($data); \/\/ echo '<\/pre>'; $this->load->view('home_view2',$data); } } default_helper.php from folder helpers \u00a0\u2026","rel":"","context":"In &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/devbanban.com\/?cat=164"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/devbanban.com\/wp-content\/uploads\/2018\/05\/ci.png?fit=431%2C512&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/2192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2192"}],"version-history":[{"count":3,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/2192\/revisions"}],"predecessor-version":[{"id":2196,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/posts\/2192\/revisions\/2196"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=\/wp\/v2\/media\/2184"}],"wp:attachment":[{"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devbanban.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}