I have some set of problem in search. I have a table classDetails and I have className, classNumber, classSubject. Now in class name there will be some set of data like. computer science, mec, electrical, etc.. in class subject the data will be like. IT,EEE,MEC and etc… in class number the data will be like. 233, 3213, 12,etc.. in this if user search the table they used to search like it 233, or eee 12, etc.. i have tried many options like
SELECT * FROM classes_detail
WHERE classDeleted = 0 AND
(
LOWER(classCollege) LIKE "%'. trim($searchTxt). '%" OR
classNumber LIKE "%'. trim($searchTxt). '%" OR
CONCAT( classNumber , LOWER(classCollege) ) LIKE "%'. trim($searchTxt). '%"
)
can any one find me a best search term for this..
You could try
or (to search some more free text)