title: PHP Array to string conversion, mysql_fetch_assoc() expects parameter
body: <p>Can someone please help me with my code, I can't get it to work.</p>
  
  <p>I have an html input form where I type for example "This is a sample". 
  (data is saved in $_POST['Begriff'])</p>
  
  <p>I want to achive a simple translation, so that the table "drinks" in column "English" is checked for existence of every single word from my input sample sentence and output if found every entry from the corresponding row in one line.</p>
  
  <p>Right now I have two problems:
  As soon as I add " where English in $wert" to the select statement I get:</p>
  
  <pre><code>Notice: Array to string conversion in nachlesen.php on line 34
  Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given 
  </code></pre>
  
  <p>Second Problem: How to I put the sentence together again from the returned results?
  (Right now I get the output for every found word below each other, instead of one line)</p>
  
  <p>Here is my code:</p>
  
  <pre><code>if ( $_POST['Begriff'] &lt;&gt; "") 
  {
  $wert = explode(' ',$_POST['Begriff']);
  $select = mysql_query ("SELECT * FROM drinks where English in $wert");
  while ( $row = mysql_fetch_assoc($select))
    {
    echo ("$row[German] &lt;br&gt;");
    echo ("$row[English]&lt;br&gt;");
    }
  }
  </code></pre>
  
  <p>Thanks in Advance, Daniel</p>