I have a problem I have the following code.
$model = new Crud();
$model->select = "a.idAplicacion, a.idPaciente, p.nombres, p.apellidos, a.peso";
$model->from = "aplicacion a JOIN paciente p ON a.idPaciente = p.idPaciente JOIN unidad u on p.Unidad = u.Unidad";
if ($_SESSION['Unidad']!=4):
$model->condicion ="u.Unidad = ".$_SESSION['Unidad'];
endif;
$model->orderby = "a.idAplicacion DESC";
$filas = $model->verTodos();
The operation of the code is as follows: it makes a query to the database if the Unit is different from 4 it enters and shows only the patients of that Unit, otherwise it shows me all the patients, I want to modify the if so that between when the Unit is different from 4 and 3 then it modified the if but it does not work for me I think it is something wrong in the sentence
if (($_SESSION['Unidad']!=4) || ($_SESSION['Unidad']!=3)):
$model->condicion ="u.Unidad = ".$_SESSION['Unidad'];
endif;