title: view search not found in table using codeigniter
body: <p>ma'am/ sir i have a problem, i want to view "Search Not Found" inside my table but when click the search button, it will go to the blank page with that search not found:</p>
  
  <p>this is my model:</p>
  
  <pre><code>function search($keyword)
  {
      $this-&gt;db-&gt;like('Firstname',$keyword);
      $this-&gt;db-&gt;or_like('Middlename',$keyword);
      $this-&gt;db-&gt;or_like('Lastname',$keyword);
      $this-&gt;db-&gt;or_like('Idnumber',$keyword);
      $query  =   $this-&gt;db-&gt;get('studentinformation');
      if ( $query-&gt;num_rows() &gt; 0 )
              return $query-&gt;result();
      else
      return FALSE;
  }
  </code></pre>
  
  <p>This is my controller:</p>
  
  <pre><code>function search_keyword()
  {
      $session_data = $this-&gt;session-&gt;userdata('logged_in');
      $data['Username'] = $session_data['Username'];
      $keyword    =   $this-&gt;input-&gt;post('keyword');
      $data['results']    =   $this-&gt;model_adminlogin-&gt;search($keyword);
      if ( !empty($data) ) 
           echo  'Search not found';
      else
                  $this-&gt;load-&gt;view('result_view',$data);
  }
  </code></pre>
  
  <p>This is my view:</p>
  
  <pre><code>&lt;div class="z table-responsive"&gt;
      &lt;table class=" table table-hover"&gt;         
          &lt;thead &gt;
              &lt;tr&gt;
                  &lt;th&gt;ID Number&lt;/th&gt;
                  &lt;th&gt;First name&lt;/th&gt;
                  &lt;th&gt;Middle name&lt;/th&gt;
                  &lt;th&gt;Last name&lt;/th&gt;
                  &lt;th&gt;Sex&lt;/th&gt;     
              &lt;/tr&gt;
          &lt;/thead&gt;&lt;?php   
              if ( !empty($data) ) 
              echo  'Search not found';
              else
              {
                  &lt;tbody&gt;
                      foreach($results as $row)
                      { ?&gt;
                              &lt;tr&gt;                             
                                  &lt;td&gt;&lt;?php echo $row-&gt; Idnumber ?&gt;&lt;/td&gt;
                                  &lt;td class="text-capitalize "&gt;&lt;?php echo $row -&gt; Firstname ?&gt;&lt;/td&gt;
                                  &lt;td class="text-capitalize"&gt;&lt;?php echo $row-&gt;Middlename ?&gt;&lt;/td&gt;
                                  &lt;td class="text-capitalize"&gt;&lt;?php echo $row-&gt; Lastname ?&gt;&lt;/td&gt;
                                  &lt;td class="text-capitalize"&gt;&lt;?php echo $row-&gt; Sex?&gt;&lt;/td&gt;
                                  &lt;td&gt;
                                      &lt;a href="&lt;?php echo site_url('viewstudentinalpha/viewspecific/'.$row-&gt;Id) ?&gt;" class="btn btn-info " style="font-size: 18px;" type="submit" name="submit" role="button"&gt;Option&lt;/a&gt;
                                   &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;?php
                      }           
        } ?&gt;
          &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>