MySQL Forums
Forum List  »  PHP

Re: MySQL PHP Search Query Code
Posted by: Rick James
Date: September 30, 2011 07:41PM

$query = "SELECT * FROM movies WHERE MATCH(description, title) AGAINST('{$words}') OR id=";
-->
$query = "SELECT * FROM movies WHERE MATCH(description, title) AGAINST('"{$words}"') OR id=";

That is, quote the phrase.

Options: ReplyQuote


Subject
Written By
Posted
September 29, 2011 12:43AM
Re: MySQL PHP Search Query Code
September 30, 2011 07:41PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.