0
$stmt = $db->prepare("select * from article where concat_ws(' ',title,text)
                      like :search order by rank");
$stmt->bindValue(':search','%'.$data.'%'); 
$stmt->execute();

This search query doesn't work properly.is it correct the way i passing value to the query? i means binding part.if there is another way to do that give me that advice also.

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345

0 Answers0