Using .Split() then adding these values to 3 php variables
<p>I have used this code on an autosuggest script to split the CSV created into 3 values in an array as such:</p>

<pre><code>&lt;?php if($_POST['category_submit']){ ?&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function() {
var arr = $(".as-values").val().split(",");
var category_1=arr[0];
var category_2=arr[1];
var category_3=arr[2];
});
&lt;/script&gt;
&lt;?php } ?&gt;
</code></pre>

<p>I now want to add the 3 values within the 3 'var' into the mysql database. What would be the steps necessary to do so? </p>

<p>Many thanks in advanced.
Ben.</p>
