title: PHP Error, Undefined index error
body: <p>In my codeigniter project I have this function in my model</p>
  
  <pre><code>function get_rtc_info($id)
      {
          $query = $this-&gt;db-&gt;get_where('rtc_info', array('id' =&gt; $id));
          $query = $query-&gt;row_array();   
          $query = $query['id'].', '.$query['name'].', '.$query['address'];  //line# 313 
          return $query;
      }
  </code></pre>
  
  <p>I get the following error/warning when running the code</p>
  
  <blockquote>
    <p>A PHP Error was encountered<br>
    Severity: Notice<br>
    Message: Undefined index: id , name and address<br>
    Filename: models/form_model.php<br>
    line number 313</p>
  </blockquote>
  
  <p>I am not sure why I get this undefined index warnings. Can someone guide me on this error and how to resolve it. Thank you in advance</p>