[eluser]snowstar[/eluser]
thanks for that, it seams to be working, how-ever im getting this error back
A Database Error Occurred
Error Number: 1054
Unknown column 'Array' in 'field list'
INSERT INTO `sales` (`clientid`, `userid`, `date`, `totalprice`, `paymenttype`, `chequeid`, `bank`, `branch`, `prodid`, `adsource`) VALUES ('', '1', '2010-11-22', '248.00', 'Master Card', '', '', '', Array, 'Unknown')
in the same function i am also doing a couple of other inserts too. Should i be doing it diffrently?
this is how my inserts look
Code:
$data = array(
'data' => $this->input->post('data'),
'data1' => $this->input->post('data1'),
);
$this->my_model->add($data);