title: how to store array values into single cell in mysql table using php?
body: <p>My question is how to store string or integer array values into mysql table. inside a table all values are store into single cell, the values are separated by comma.</p>
  
  <p>ex:</p>
  
  <pre><code>&lt;input type="text" name="product[]" value="rose"&gt;
  &lt;input type="text" name="product[]" value="garlands"&gt;
  &lt;input type="text" name="product[]" value="marigold"&gt;
  &lt;input type="text" name="product[]" value="jasmine"&gt;
  &lt;input type="text" name="product[]" value="jasmine garlands"&gt;
  </code></pre>
  
  <p>The above values are inserted into mysql table</p>
  
  <pre><code>$sql=mysql_query(" insert into product_sale(product_name) values (?)");
  </code></pre>
  
  <p>how to store all values and separated by comma, the stored values like</p>
  
  <pre><code>(rose,garlands,marigold,jasmine,jasmine garlands) in a single cell.
  </code></pre>