i have been trying to write a program to insert the array values in multiple rows of a column in a database table. After lot of trial I couldn't get the proper output I wanted.
My database table looks like this
id | values |
1 | |
2 | |
4 | |
5 | |
6 | |
and I have 2nd column values as an array and I want to enter those values in the second column.
The output should look like this:-
id | values |
1 | 2 |
2 | 3 |
4 | 7 |
5 | 9 |
6 | 10 |
So, I have two array values $id and $values...So, I want to fill $values in each row of the column for each respective $id values
NOTE : $id is already filled in the database