The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

LIKE too restrictive

Is there any other function that will select rows from a table where the results are similiar to specified keywords but produce broader results? I have noticed with using LIKE you really have to be specific with the keywords, cause it doesn't produce many results. Maybe my code is set up wrong...

PHP Code:

$SearchQuery = "SELECT id, title FROM blogs_content WHERE blog_id = '$blog_id' AND title LIKE '%$keywords%'";

What you are probably after is full text search . You will need to read through all the sections to fully understand how to use full text search, and you may want to change some of the sever settings. Pay particular attention to the section on building the full text indexes, it trips a lot of people up. Also have a look at the section on query expansion as that may be very usefull to you.