[eluser]smithdp1[/eluser]
Now i am finally seeing it...I have been trying to get this for 2 days. Here is what I have but I still get 2 erros:
Code:
function create(){
foreach ($this->input->post('clientid[]') as $clientid)
{
$data = array(
'clientid' => $clientid,
'campaignid' => $this->input->post('campaignid'),
'creationdate' => $datetime
);
$this->client->add_record($data);
$this->index();
}
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: mysql/mysql_driver.php
Line Number: 552
A Database Error Occurred
Error Number: 1054
Unknown column 'Array' in 'field list'
INSERT INTO `campaign_to_client` (`clientid`, `campaignid`, `creationdate`) VALUES (Array, '2', '2012-12-20 05:04:23')
Filename: C:\wamp\www\crud\system\database\DB_driver.php
Line Number: 330
Thanks for your help...I was ready to give up...