如何搜索多個字段,這個代碼搜索單個列,請定製我的代碼如何在MySQL查詢中搜索多個列?
$keywords= "search keywords";
$keywords= htmlspecialchars($keywords);
$keywords= mysqli_real_escape_string($con, $keywords);
$countSql_s = "SELECT *, MATCH(website) AGAINST ('%".$keywords."%') AS score FROM search WHERE MATCH(website) AGAINST ('%".$keywords."%') ORDER BY score DESC";
感謝@傑里米·格爾 –