I’m trying to get a list of related articles. Example
$title = $fetch_content[article_name]; // example out put "Hello World, Ask A Question"
$rel_title = "Select * from tbl_content WHERE status='t' and article_name like '%$title' order by id desc limit 5";
How to separate the “Hello World, Ask A Question” into single keywords.
You can use the split function in PHP to break that title up into each word:
I also used
str_replaceto remove the comma in the question. Obviously, you can apply this to other characters if you have them.