Passing the splitted values in a query
<pre><code>&lt; ? php

$array = array('name1', 'name2', 'name3');
$comma_separated = implode(",", $array);

echo $comma_separated;

mysql_query("INSERT INTO  uploadfile(UF_ID,UF_NAME,GENRE,CAT_ID,SUB_CAT_ID,TAG,DESCRIPTION)             VALUES('mysql_insert_id()','$comma_separated','$GENRE','1','1','$tag','$optionaldescription')") ? &gt;
</code></pre>

<ol>
<li>How can i send these values through my query.</li>
<li>The way i am forming my query is that fine.</li>
</ol>
