title: Twilio Receiving SMS codeigniter
body: <p>Hi iam using twilio to send and receive SMS from my customers. The sending SMS works fine. </p>
  
  <p>When a SMS is received i want to save <code>from</code>, <code>Body</code> to my database.its not working. Here is my code.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>function  receive(){
      $post_data['from']       =  $this-&gt;input-&gt;post('From');
      $post_data['body']       =  $this-&gt;input-&gt;post('Body');
  
      if($post_data['from'] &amp;&amp; $post_data['body']){
          $this-&gt;receive-&gt;insert_received_message($post_data);
      }
  
  }
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>function insert_received_message($data){
  
       $sms['pone_number']    = $data['from'];
       $sms['message_type']   = 2;
       $sms['body']           = $data['body'];
  
       $results = $this-&gt;db-&gt;insert('Sms_message', $sms); 
       return $results;
  }
  </code></pre>
  
  <p><strong>I added the url to my number like this</strong></p>
  
  <p><img src="https://i.stack.imgur.com/NjdRS.png" alt="enter image description here"></p>
  
  <p><strong>Error message in Received log</strong></p>
  
  <p><img src="https://i.stack.imgur.com/xnX6O.png" alt="enter image description here"></p>
  
  <p>Can someone help me to fix this. TNX.</p>