title: Display multiple rows in codeigniter
body: <p>I have  query where I fetch the content of about 5 rows each with different content, but i dont now to display them individually in my views.</p>
  
  <p>When I pass the the <code>query-&gt;result()</code> from my model back to my controller as <code>$query</code>, and then load a view with the <code>$query</code> data, I don't know how to echo out the e.g. content field of row 1.</p>
  
  <p>I only know how to do this: <code>foreach($query as $row) { echo $row-&gt;content; }</code></p>
  
  <p>But this doesn't allow me to select what row content data (out of the 5 retrieved) I wanna <code>echo</code> out.</p>
  
  <p>Could someone please explain how this is done?</p>