Hi,
I have a two tables one is articles and the other is comments. Of course the primary key in articles which is named id is set to be a forign key in comments to handles the related comments of a specific article. The general structure of the two table is summerised below:
articles
id *
title FULLTEXT
content FULLTEXT
comments
id *
article_id
content FULLTEXT
FULLTEXT is set well and there is no problem to perform it. What I need to know is how to search the full text fields in the two tables to get the the id of the article that has the search value in articles.title or articles.content or comments.content?
In other word, I need the query result to give the id of article that has the search string in either articles (title and content) or comments content.