I am looking to make a search tool for my site which contains several courses.
I would like basically to type a word and we will look in all the pages of course if the word is present, and then the pages will be classified according to the number of appearance of the word.
So I made a SQL table containing "coursnumero", "textcours", "liencours", and in course text I have all the text of the course in question.
I have :
SELECT count(*) FROM `cours` WHERE `textcours` like '%super%' groupby `coursnumero`
It shows 1 but I got 2 words "super" in my sentence, how can I fix this?