title: Data is not insert into database, there is no error shown
body: <p>I have problem in insert data in database; there is no error shown, but data is not inserted into the database.</p>
  
  <p><strong>Controller Code</strong></p>
  
  <pre><code>function FormData($data){
      if (!empty($_POST['name'])) {
          $data = array(
              'name'       =&gt;  $this-&gt;input-&gt;post('name'),
              'position'   =&gt;  $this-&gt;input-&gt;post('position'),
              'about_me'   =&gt;  $this-&gt;input-&gt;post('about_me'),
              'contact_me' =&gt;  $this-&gt;input-&gt;post('contact_me'),
              'email'      =&gt;  $this-&gt;input-&gt;post('email'),
              'temp_addr'  =&gt;  $this-&gt;input-&gt;post('temp_addr'),
              'perm_addr'  =&gt;  $this-&gt;input-&gt;post('perm_addr'),
              'skill'      =&gt;  $this-&gt;input-&gt;post('skill'),
              'photo'      =&gt; $this-&gt;input-&gt;post('photo'),
  
  
          );
          $this-&gt;Maboutus-&gt;form_insert($data);
          redirect('/admin');
      }
  }
  </code></pre>
  
  <p><strong>Model Code</strong></p>
  
  <pre><code>function form_insert($data){
      $this-&gt;db-&gt;insert('aboutus',$data);
  }
  </code></pre>
  
  <p><strong>View file</strong></p>
  
  <pre><code>&lt;div class="container"&gt;
          &lt;div class="col-md-8"&gt;
               &lt;form  action="#" method="POST" class="form-horizontal"&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="name" class="col-md-4" &gt;Name :&lt;/lebel&gt;
                          &lt;input type="text" name="name" id="name" class="col-md-8" placeholder="your name " required&gt;                
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Position :&lt;/lebel&gt;
                          &lt;input type="text" name="position" id="position" class="col-md-8" placeholder="your position " required&gt;                
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                           &lt;lebel for="position" class="col-md-4" &gt;About Me :&lt;/lebel&gt;
                           &lt;input type="text" name="about_me" id="about_me" class="col-md-8" placeholder=" your name About me " required&gt;             
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Mobile No :&lt;/lebel&gt;
                          &lt;input type="text" name="contact_me" id="contact_me" class="col-md-8" placeholder=" your Mobile number" required&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Email :&lt;/lebel&gt;
                          &lt;input type="text" name="email" id="email" class="col-md-8" placeholder=" your email " required&gt;                
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Temporary Addr :&lt;/lebel&gt;
                          &lt;input type="text" name="temp_addr" id="temp_addr" class="col-md-8" placeholder=" your Temporary Address " required&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Permanent Addr :&lt;/lebel&gt;
                          &lt;input type="text" name="perm_addr" id="perm_addr" class="col-md-8" placeholder=" your Permanent Address " required&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;lebel for="position" class="col-md-4" &gt;Skill :&lt;/lebel&gt;
                          &lt;input type="text" name="skill" id="skill" class="col-md-8" class="col-md-8" placeholder="your skill " required&gt;                
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="clearfix"&gt;&lt;/div&gt;
  
                  &lt;div class="col-md-12"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
                          &lt;input type="file" class="col-md-8" name="photo" id="photo"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
              &lt;div class="col-md-12"&gt;
                  &lt;div class="form-group"&gt;
                    &lt;input class="col-md-8" class="btn btn-primary" type="submit" value="Submit"&gt;&lt;/br&gt;&lt;/br&gt;
                  &lt;/div&gt;
               &lt;/div&gt;
                &lt;/form&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>I am new in PHP. Data is not insert in database, and it shows no error; what can I do? I tried to search but I didn't find anything wrong.</p>