title: Unable to echo rows
body: <p>I have been stuck on something for quite a while now, I am creating a take-away system (pure as self learning). Although i'm trying to keep the learning curve go upwards by browsing the internet and look for solutions but I haven't found a solution for now.</p>
  
  <p>I have two MYSQL tables named ; "Menu_Category" and "Menu_Dishes". I want to have a drop down menu when you're adding a dish, it gives you all the categories from Menu_category. </p>
  
  <p><strong><em>Menu_Category has the following columns</em></strong> 
  Cat_id
  Category
  Comments
  Image
  State
  Created_by
  Created_at
  Updated_on
  Updated_by</p>
  
  <p><strong><em>Menu_Dishes has the following columns</em></strong> 
  Dish_id
  Dish_name
  Dish_price
  Dish_comments
  Dish_image
  Dish_state
  Dish_Category</p>
  
  <p>So technically speaking, should a inner join be used or should I twice use SELECT to two different databases? I'm currently completely lost.. </p>
  
  <pre><code>        &lt;?php
          $Category = $db-&gt;getValue ("Menu_Category", "Category");
          // select login from users
              echo $Category;
          ?&gt;
  </code></pre>
  
  <p>This echo works and it shows one row, which is logic since the foreach isn't programmed, but I can't seem to get it to work.. </p>
  
  <p>Thanks for your help! </p>
  
  <p>Darry </p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>&lt;?php $rows = $db-&gt;arraybuilder('Menu_Category');?&gt;
  &lt;?php foreach ($rows as $row): ?&gt;
  &lt;?php echo $row['Category']; ?&gt;
  &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>I now have the following error code: Warning: Illegal string offset 'Category' in customers/5/0/d/mardesk.be/httpd.www/new/forms/dishes_form.php</p>