MySQL Forums
Forum List  »  MyISAM

Re: search inclose in double quote
Posted by: Rick James
Date: June 16, 2012 03:59PM

What if $Kery has an apostrophe in it?

$requete = "SELECT * FROM Base WHERE MATCH (Champ1,Champ2) AGAINST ('$Kery' IN BOOLEAN MODE) order by Champ1 ";}
-->
$eKery = mysql_escape_string($Kery);
$requete = "SELECT * FROM Base WHERE MATCH (Champ1,Champ2) AGAINST ('$eKery' IN BOOLEAN MODE) order by Champ1 ";}

Options: ReplyQuote


Subject
Views
Written By
Posted
2252
June 06, 2012 04:27AM
1250
June 12, 2012 09:43PM
Re: search inclose in double quote
1664
June 16, 2012 03:59PM


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.