I am trying to delete a row from the database and, it gives me an error in codeigniter...
Here is my code...
public function deletePersonDetailsSingle($id){
$this->db->where('id', $id);
$this->db->delete('personhistories');
}
can you please help?
I have written two extra tables to store data and created two triggers for those tables. Here, two extra tables id's were not auto increment
*Note: I have already made my id in "personhistories" auto increment and unique