So right now i have a column in my table of School classes called days which contains the days that specific section will run on, like 'TR' would be that it runs on Tuesday and Thursday, and 'MWF' will be it runs on Monday, Wednesday, and Friday.
i want the user to be able to filter by days it runs, so if a class runs 3 times, MT,MW,TF i want the user to be able to enter MTW, and get the first 2. But the only way i could figure out how to query it correctly, is to make the input string to an array of all possibilities so MTW would become M,T,W,MT,MW,TW,MWT and just see if days is in that array. it works but i am wondering if there is a better way.