I'm using codeigniter
, below is my array. How do I insert the data into a database with column name sibbling_name
and sibbling_age
.
I tried a CI tutorial but it showed me an error because 0,1,2 is not field in db. Of course is it how to change that [0] into 'sibbling_name'
column and [0] in sibblingAge
into 'sibbling_age'
column?
[sibblingName] => Array
(
[0] => Ryan Yaohari
[1] => Rico Yaohari
[2] => Rino Yaohari
)
[sibblingAge] => Array
(
[0] => 23
[1] => 21
[2] => 19
)