title: PHP MySQL Query using a variable, not diplaying results, nor error
body: <p>The variable I use for the query prints properly, so it is there.</p>
  
  <pre><code>&lt;?php
   print $product_main["ean"]; 
  //The variable is there, since it prints
  ?&gt; 
  </code></pre>
  
  <p>If I execute this query, it works</p>
  
  <pre><code>$query = ("SELECT * FROM graph ;") or die(mysql_error());
  </code></pre>
  
  <p>But not with the one where I use a variable</p>
  
  <pre><code>$query = ("SELECT * FROM graph WHERE ean IN ".$product_main["ean"]." group by DAY(created_at);") or die(mysql_error());
  </code></pre>
  
  <p>Does not work. 
  I belibe the problem is in how I include the array variable into the query</p>
  
  <pre><code>".$product_main["ean"]."
  </code></pre>
  
  <p>How has this to be done?</p>