Jump to content

like command


gurechan

Recommended Posts

Hi, I'm trying to set up a search form and using the LIKE command in MySQL, ie:

SELECT * FROM books WHERE title LIKE '%$search%'

Now say I have a heap of books that have the work [b]book [/b]in the title, this query works fine if you enter book in the search field, but if you enter [b]books [/b]you get no results.

Is there an easy way to get it to still find a match.
Link to comment
https://forums.phpfreaks.com/topic/17008-like-command/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.