I have array named olmali
$olmali = $_POST['result'];
and print_r($olmali);
Result is below :
Array (
[0] => 1
[1] => 1
[2] => 20
[3] => 2
[4] => 3
[5] => 5
[6] => 6
[7] => 7
[8] => 9
[9] => 8
[10] => 10
[11] => 11
[12] => 13
[13] => 12
[14] => 12
[15] => 14
[16] => 15
[17] => 16
[18] => 17
[19] => 17
[20] => 19
[21] => 20
)
Result are going to test column in SQL table in phpmyadmin like :
id test
1 array
But I expect :
id test
1 1
2 1
3 20
4 2
5 3
6 ....and goes on
How can I resolve this problem ? İs there any way and how can I do it. PHP array to column row in MySQL table like that