I have been having issues trying to write a proper SQL search query with PHP using the Like keyword to generate ordered results based on the keywords entered.
This is what I want to achieve
If I search for "Man thinking" , the result should come out like
Displaying results that match " Man thinking " --- 1st
Then Displaying results of " Man " --- 2nd
And then displaying results of " thinking " ---3rd
I used the Like keyword like this below
select * from tablename where description like % Man thinking %
but it only generated random results and not ordered by the keyword string I used