Welcome Guest, Not a member yet? Register   Sign In
multiple insert
#1

[eluser]zawaruddin[/eluser]
i have read the CI user guide for insert_string. And this is the code :

$data = array('name' => $name, 'email' => $email, 'url' => $url);
$str = $this->db->insert_string('table_name', $data);

but in my case, i've data in array
$data = array('name' => array('zawaruddin','devi','farhan'),
'email' => array('[email protected]','[email protected]','[email protected]'),
'url' => array('url1','url2','url3'));

$str = $this->db->insert_string('table_name', $data);

can i insert $data in db with insert_string function??? or other insert function???
my dbms is postgre...

thanks


Messages In This Thread
multiple insert - by El Forum - 01-11-2011, 10:53 PM
multiple insert - by El Forum - 01-11-2011, 11:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB