Hi, I have a problem updating two tables at the same time
Appointment in block
/*Si se ejecuta el update*/
if($this->miembro->editar_miembro($editar_miembro, $id_usuario)) {
/*Redireccionamos al listado de usuarios e indicamos que se actualizó correctamente*/
$this->session->set_flashdata('success', 'Registro editado correctamente');
redirect(base_url()."index.php/perfil");
}//./if
Model
public function editar_miembro($datos, $id_usuario)
{
/*Indicamos el usuario a editar*/
$this->db->where('id_usuario', $id_usuario);
/*Ejecutamos el update en la base de datos*/
$this->db->update('usuario', $datos);
return TRUE;
} // /editar_carrera
Only orita I'm passing the user's data, only I'm updating the user's data and I do not send the company data because I do not know how to build the query
as you realize, the user has as fk id_empresa. I hope you can help me.