1
Good afternoon guys, recently in one of my projects a problem arose and I hope you can help me.
To better understand the site is a site of consultations in the area of health, as clinics, cardiology, urology, etc. Some clinics may belong to two categories at the same time, as "Clinic" and "Cardiology" I made the consultation as follows:
$url.= ' AND t.areadasaude LIKE "%'.$especialidadesaude.'%"';
The problem is, the Cardiology category belongs to id = 1, cardiology belongs to id = 19, as the LIKE refers to everything that is within the table all results that are within category 19 are appearing in category 1 because the LIKE takes id number 1 19. How I make LIKE take 100% of what is marked?
Note: If I mark two categories, the database is recorded as follows: ["1","19"]
, we should consider in consultation tbm when there is more than one category marked. Someone could help me?
Like it’s not for that.
– Bacco