title: building a sql query string with php parameters
body: <p>I'm trying to do this, but it returns null?</p>
  
  <pre><code>$query_1=$field_name[0]."='{".$field_value[0]."}'";
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>getType = mysql_query("SELECT * FROM wines WHERE $query_1") or die(mysql_error());
  </code></pre>
  
  <p>while if i do like this:</p>
  
  <pre><code> $getType = mysql_query("SELECT * FROM wines WHERE $field_name[0]='{$field_value[0]}'") or die(mysql_error());
  </code></pre>
  
  <p>it works fine.</p>
  
  <p>is this even possible, or am I missing something too obvious?
  thank you in advance!</p>