storing values from JSON.stringify to mysql
<p>I am trying to store values from html form and stored/send via JSON.stringify to my php file, and then my PHP file write those values to DB.</p>

<p>So far i've managed to receive the $_POST values but is it in array, like this:</p>

<pre><code>["Test","Test2","Test3","Test4"]

This is my PHP file now:
$array = $_POST["input"];
$i_ment = $array[0];
$odd_ment = $array[1];
$em_ment = $array[2];
$mobi_ment = $array[3];


mysql_query("INSERT INTO team VALUES ('$i_ment', '$odd_ment', '$em_ment', '$mobi_ment')")
</code></pre>

<p>But the values that comes to db are still in arrow, like this:</p>

<pre><code>["Test","Test2","Test3","Test4"],["Test","Test2","Test3","Test4"],["Test","Test2","Test3","Test4"],["Test","Test2","Test3","Test4"]
</code></pre>