title: MySql Query Error [syntax error, unexpected '' (T_ENCAPSED_AND_...]
body: <p>I've some problems with my query can some one help me fix it? </p>
  
  <p>This is my code:</p>
  
  <pre><code> mysql_query ("INSERT INTO categories_to_sales (sales_id, categories_id, value) VALUES ('$sale_id','$catid', '$_POST['txtCategorie_' . '$catid']') ");  
  </code></pre>
  
  <p>When I use this code I get the following error: </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in addsales.php on line 91</p>
  </blockquote>
  
  <p>I think it might have something to do with the $_POST[].</p>