hi, Is this correct query for searching articles table where body has 'acne scar' string and catid not equal to 5 select * from articles WHERE MATCH (content) AGAINST ('acne scar') and catid != 5
I "think" that is right.It has been a while since I've done fulltext searching. Of course the quickest way to find out would be to try it There are also some examples in the MySQL manual that extend it further. Mysql Fulltext Searching Hope that helps
That should work. You could also do something like this: SELECT * from articles WHERE catid != '5' AND content LIKE 'acne scar'
Yes its fine. The logic goes like this. -> Find no of results matching <cond> -> Display results -> Use Paging. -> You can also use like %query% When comes to search mysql is not very efficient in search results. You will need to use the free scripts listed here