array (size=11)
'reward_title' =>
array (size=2)
0 => string 'kishan' (length=6)
1 => string 'asd' (length=3)
'amount' =>
array (size=2)
0 => string '100' (length=3)
1 => string '200' (length=3)
'description' =>
array (size=2)
0 => string 'k' (length=1)
1 => string 'kk' (length=2)
'estimated_delivery' =>
array (size=2)
0 => string '02/02/2017' (length=10)
1 => string '02/03/2017' (length=10)
'shipping_details' =>
array (size=2)
0 => string '1' (length=1)
1 => string '2' (length=1)
'ship_amount_country' =>
array (size=2)
0 => string '1' (length=1)
1 => string '' (length=0)
'ship_anywhere_world' =>
array (size=2)
0 => string '' (length=0)
1 => string '5' (length=1)
'limit_avail' =>
array (size=2)
0 => string 'on' (length=2)
1 => string 'on' (length=2)
'backer_limit' =>
array (size=2)
0 => string '2' (length=1)
1 => string '6' (length=1)
'avail_from' =>
array (size=2)
0 => string '3' (length=1)
1 => string '7' (length=1)
'avail_until' =>
array (size=2)
0 => string '4' (length=1)
1 => string '8' (length=1)
數據庫表 screenshot多維數組值插入到數據庫中使用笨
多維數組值使用笨 幫我插入到數據庫中。
RTFM https://codeigniter.com/user_guide/database/query_builder.html#inserting-data請參閱'$ this-> db-> insert_batch()' – BadHorsie
說真的,解釋一下你想達到的效果! –
OP需要將他給定的數組轉換爲codeigniter多插入數組。我希望我很清楚 – rahulsm