Trying to insert a row into my database with CodeIgniter.
My database table is Customer_Orders and the fields are CustomerName and Or
Customer_Orders
CustomerName
Or
Check your controller:
function order() $OrderLines = $this->input->post('orderlines'); $CustomerName = $this->input->post('customer'); $data = array( 'OrderLines' => $OrderLines, 'CustomerName' =>$CustomerName ); $this->db->insert('Customer_Orders', $data); }