Welcome Guest, Not a member yet? Register   Sign In
Deletes are not allowed unless they contain a "where" or "like" clause.
#1

HI , this is my code :


Code:
        $this->db->from('eventi_partecipanti_accompagnatori');
        $this->db->join('accompagnatori_club', 'accompagnatori_club.id=eventi_partecipanti_accompagnatori.id_accompagnatori_club', 'left');
        $this->db->join('user', 'accompagnatori_club.id_user=user.id', 'left');
        $this->db->where('eventi_partecipanti_accompagnatori.id_eventi', $id_eventi);
        $this->db->where('user.id', $id_user);
       
        if($this->db->delete('eventi_partecipanti_accompagnatori')){

            return TRUE;

        }else{

            return FALSE;

        }


But i have this error :

Code:
Deletes are not allowed unless they contain a "where" or "like" clause.


How can i solve it ?
Reply


Messages In This Thread
Deletes are not allowed unless they contain a "where" or "like" clause. - by pippuccio76 - 03-13-2020, 05:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB