如果有选项,如何将值购物车codeigniter插入数据库

时间:2017-03-09 04:33:33

标签: php codeigniter mysqli

    $data = array(
        'id'            =>  $id_product,
        'qty'           =>  1,
        'price'         =>  '',
        'name'          =>  $name_group->name_product_groups.' '.$name_product->name_products,
        'options'       =>  array('player'=>$this->input->post('name'),'number'=>$this->input->post('number'),'size'=>$name_size->name_group.' '.$name_size->name_size,'comment'=>$this->input->post('comment')),
        'id_groups'     =>  $id_groups,
        'fabric'        =>  $name_fabric->name_fabrics,
        'option'        =>  $name_option,
        'order_type'    =>  'Order Uniform');
        $this->orders->insert_order_product_ready($data2);
请问,如何将购物车上的数据插入数据库?因为数据有选项

0 个答案:

没有答案