title: Foreign key to multiple records
body: <p>I have two tables like so:</p>
  
  <pre><code>Table1
  | itemid (PK)|    
  | typeid (FK)|     
  | item count |     
  
  Table2        
  | typeid (PK)|  
  | type name  |
  </code></pre>
  
  <p>Table2 have 4-5 records in it. ...And I'm stuck at this point... Basically the item can be of all types (it can have typeid (FK) = NULL or all 4-5). I just can't get my head round this..At the moment when I add new item to Table1 (using phpmyAdmin ui) it gives me a choice of one FK as a dropdown list.. But what if the item is of two or three types..? It's probably a piece of cake but my brain has stalled... What would be the best way to do it?</p>