I have SQL:
select id,disponibilidade,tipo from clientes where cliente = '$cliente' AND status = '2' AND tipo = '0' OR disponibilidade <> '0' OR vanual <> '0' OR vtemporada <> '0'
You have to return a record if the type field is zero and if all the availability , vanual and / strong> are zero. But ... it will not return a record if the type capo is nonzero and also if any of the fields like availability , vanual timetable are nonzero.
But I can not do it!