[eluser]Unknown[/eluser]
Code:
function insert($value){
$this->db->insert('tablename',$array('fieldname'=>$value));
}
Code:
anchor('controller/insert/123','test', 'title="Test title"');
Hi guys!
I have those codes above in my project, at first it seems working fine but when i looked into my table, the value inserted three times. I'm new in codeigniter and i am stuck with this problem.
Anyone have an idea why is this happening? Thanks!