I have 2 dimensional array to be save into mysql. The problem is, how do i get the data from that array and save it into DB Here is my array:
Array
(
[1a] => Array
(
[ans] => 1
)
[2a] => Array
(
[ans] => 1
[oth] => ABC
)
[3a] => Array
(
[ans] => 1
)
[3b] => Array
(
[ans] => 2
)
[3f] => Array
(
[oth] =>
)
)
so when saved, it will be look like this:
| qid | ans | oth |
===================
| 1a | 1 | |
| 2a | 1 | ABC |
| 3a | 1 | |
| 3b | 2 | |
| 3f | | |
===================
please help me n thanks.