title: Pass value from my view to my model
body: <p>i want to pass a value from my view to my model. i want to pass the $plate value to my model to get all the data that will match the $plate. here is my code:</p>
  
  <p>View</p>
  
  <pre><code>&lt;a href="&lt;?=base_url()?&gt;services/view_services?plate=&lt;?php echo  $plate; ?&gt;"&gt;
  &lt;button type="button" class="btn btn-primary"&gt;View Services&lt;/button&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function view_services()
  {
      $data['results'] = $this-&gt;Services_model-&gt;fetch_car_services($config['per_page'], $page);
      $this-&gt;load-&gt;view('car_services', $data);
  }
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>public function fetch_car_services($plate)
  {
      $this-&gt;db-&gt;where('car_plate_number =', $plate);
      $this-&gt;db-&gt;order_by('created_datetime', 'DESC');
      $query = $this-&gt;db-&gt;get('service_jobs');
      $result = $query-&gt;result();
      $this-&gt;db-&gt;save_queries = false;
  
      return $result;
  }  
  </code></pre>
  
  <p>it doesn't seem to work. Thanks in advance.</p>