title: Search through name instead of id in code igniter..?
body: <p>I am a new to php, have this code in controller:</p>
  
  <pre><code>public function selectquery($id){
      $this-&gt;load-&gt;database();
      $this-&gt;load-&gt;model('aboutmodel');
      $data['h'] = $this-&gt;aboutmodel-&gt;selectquery($id);
      $this-&gt;load-&gt;view('aboutpageview', $data);
  }
  </code></pre>
  
  <p>and this in model:</p>
  
  <pre><code>public function selectquery($id){
      $query =$this-&gt;db-&gt;get_where('phone_mobileinfos',array('id'=&gt;$id));
      // return $query-&gt;row_array();
      return $query;
  }
  </code></pre>
  
  <p>this in view:</p>
  
  <p>{</p>
  
  <pre><code>&lt;p&gt;Mobile_name:&lt;?php echo $h['mobile_name'];?&gt;&lt;/p&gt;
  
  &lt;p&gt;Price:&lt;?php echo $h['price'];?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>}
  Just want to search by name instead of id any suggestions..?</p>