title: Display the result of the search bar in codeigniter
body: <p>Good day to all I have trouble in codeigniter it suppose to display the data (the first name and the student id of the student) in my oracle database depending on what I type in the search box. for example i the the name of student to the search box when i click the submit button it will display the data of that student. i try to search some code and use it but it displayed error  404 page not found. here is the code</p>
  
  <p>This is for the view mysearch.php</p>
  
  <pre><code>&lt;form action="&lt;?php echo site_url('search/search_keyword');?&gt;" method = "post"&gt;
      &lt;input type="text" name = "keyword" /&gt;
      &lt;input type="submit" value = "Search" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is for the controller search.php</p>
  
  <pre><code>Class Search Extends CI_Controller
  {
      function __Construct()
      {        
          parent::__Construct();
  
          $this-&gt;load-&gt;database();
          $this-&gt;load-&gt;model('mymodel');
      }
  
      function search_keyword()
      {
          $keyword = $this-&gt;input-&gt;post('keyword');
          $data['results'] = $this-&gt;mymodel-&gt;search($keyword);
  
          $this-&gt;load-&gt;view('result_view', $data);
      }
  }
  </code></pre>
  
  <p>This is for the Model mymodel.php</p>
  
  <pre><code>Class Mymodel Extends CI_Model
  {
      function __construct()
      {
          parent::__construct();
      }
  
      function search($keyword)
      {
  
          $this-&gt;db-&gt;like('name',$keyword);
          $query = $this-&gt;db-&gt;get('tablename');
          return $query-&gt;result();
      }
  }   
  </code></pre>
  
  <p>This is for the view result_view.php</p>
  
  <pre><code>&lt;table&gt;
  &lt;?php
      foreach ($results as $row) {
  ?&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;?php echo $row-&gt;FIRST_NAME?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $row-&gt;STUDENT_ID?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php   
  }
  ?&gt;
  &lt;/table&gt;
  </code></pre>