title: Updating data in MySql with Codeigniter does not work
body: <p>MySql database is not updating with the new data entered in view. With following the MVC architecture. </p>
  
  <blockquote>
    <p>My Controller :</p>
  </blockquote>
  
  <pre><code>public function saveEdit() {
              $this-&gt;load-&gt;helper('form');
  
              $id = $this-&gt;uri-&gt;segment(3); 
  
              $save=array(
              'userstory' =&gt; $this-&gt;input-&gt;post('userstoryarea'),
              'datetocomplete' =&gt; $this-&gt; input-&gt;post('datecomplete'),
              'name'=&gt; $this-&gt;input-&gt;post('developer')
              );
  
              $this-&gt;load_userStory-&gt;saveEdited($id,$save);
              $this-&gt;viewUStory();
          }
  </code></pre>
  
  <blockquote>
    <p>My Model</p>
  </blockquote>
  
  <pre><code>public function saveEdited($id,$save){
  
      $this-&gt;db-&gt;where('devid', $id);
      $this-&gt;db-&gt;update('developer', $save);
  
  
  }
  </code></pre>
  
  <p>In some of the places i have called some javascript methods which will return some values to display. </p>
  
  <blockquote>
    <p>My View</p>
  </blockquote>
  
  <pre><code>&lt;?php foreach ($story as $UserStory): ?&gt;                
          &lt;form method="post" action="&lt;?php echo base_url() ."addstories/saveEdit"?&gt;" &gt;
          &lt;p&gt; Select Devoloper to add : 
          &lt;select class="form-control" id="developer" name ="developer" style="width:200px;"&gt; &lt;/p&gt;
  
           &lt;?php 
              $val2 = $row['name'];
              foreach($developers as $row)
              { 
               echo '&lt;option value="'.$row-&gt;full_name.'" &gt;'.$row-&gt;full_name.'&lt;/option&gt;';
              }
              ?&gt;
              &lt;/select&gt;
              &lt;p&gt;
  
              &lt;p&gt;
              Select a date to complete the project :   &lt;i&gt;
  
               &lt;input type="date" id="datecomplete"  name ="datecomplete" value="&lt;?php echo $UserStory-&gt;datetocomplete;?&gt;" onchange="calculate()"&gt;
              &lt;/i&gt;    &lt;/p&gt;
  
  
              &lt;p&gt;             
              &lt;input type="textarea" name="userStory" id="userStory" value=" &lt;?php echo $UserStory-&gt;userstory; ?&gt; "&gt;
              &lt;/p&gt;
  
              &lt;input type="submit" name ="dsubmit" value="Save" id="submit"&gt;
              &lt;/form&gt;
              &lt;?php endforeach; ?&gt;
  </code></pre>