title: Inserting Codeigniter cart data into database
body: <p>I'm building a library and I've set up a shopping cart using the Codeigniter cart helper. It works perfectly for the user, but I also want the data from the cart to be inserted into a database when the user sends in an order.</p>
  
  <p>This way I can display the orders in the Admin Panel, so I can delete or complete them. I tried inserting using the contents of $this->cart->contents(); - but it doesn't work.</p>
  
  <p>Any ideas how can I insert the cart's contents into a DB? Thanks! </p>