I am trying to insert into my database, however it is not working. This is the error I get:
Error Number: HY000/5
database is locked
This is my code:
$this->load->database();
$data = array('x' => '1','alfa' => '1', 'afstand' => '1', 'laatst' => '1');
if($this->db->insert('configuratie', $data))
{
echo "success";
}
else{
echo "error";
}
I am using a SQLITE database. What's going wrong or what could I try?