title: Joomla 3 JDatabase how to echo rows
body: <p>I can't find valid statement for fetching rows and displaying items in <code>JDatabase</code>.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>$db = JFactory::getDbo();
  $query = $db-&gt;getQuery(true);
  $query-&gt;select(array('item_id, item_name'));
  $query-&gt;from('#__items');
  </code></pre>
  
  <p>How to print out these items in table?</p>