[eluser]dimis[/eluser]
I use this code
Code:
foreach ($lans as $lan)
{
(".$lan['code'].",".$lan['name'].",".$id.")");
$sql = "replace into material_lan ( lan_id ,lan_text,material_id) values (?,?,?)";
$this->db->query($sql,$lan['code'], $lan['name'],$id);
}
and i have this error
Code:
Error Number: 1064
You have an error in your SQL syntax;
check the manual that corresponds to your
MySQL server version for the right syntax to use near '' at line 1
replace into material_lan ( lan_id ,lan_text,material_id) values ('en',
What is wrong ? I run this sql at sql manager lite and it is ok