hello guys i need a little help hope you can help me. My problem is i want to store my array information in the database.
Here's my array sample array layout that generated by var_dump().
Code:
Array
(
[2] => Array
(
[id] => 2
[product_name] => NOKIA 5110
[product_desc] => Cellphone
[product_price] => 500.00
[product_qty] => 1
[product_amount] => 500
[product_code] => NOKI2012-84353
)
[3] => Array
(
[id] => 3
[product_name] => HP IPAQ RW6828
[product_desc] => Cellphone
[product_price] => 1500.00
[product_qty] => 1
[product_amount] => 1500
[product_code] => HP I2012-08386
)
)
here is my actual array extract by unserialized function:
Code:
$products = unserialize($this->session->userdata('product_list'));
How can i pas it to the database?