I have a table which has a field called tags which is of type varchar. this column holds json_encoded data.
["4","5","6","7"]
a record can have multiple tags. I don't wanna to resort to using pivot table which I know is more efficient. I want to keep it this way at the moment.
i want to filter all the records which has specific tag. just a single tag... How can i create a query for that?
$cats = $_POST['cats']; if(! $cats==0) { $filters .= 'ANDcategory` LIKE %'. $cats . '%'; }`