我在多個表中搜索不同的值時遇到問題。當我搜索「保羅」時,我什麼也沒有收到,但是如果我搜索「保羅」,我會得到相應的人以保羅這個名字命令。搜索不區分大小寫的
$get_orders = mysql_query("
SELECT
co.id, co.final_id, co.shop_id, co.customer_id, co.payment_type, co.payment_currency, co.billing_email, co.billing_first_name, co.billing_last_name, co.delivery_first_name, co.delivery_last_name, UNIX_TIMESTAMP(co.order_created) AS order_created, c.email, s.site_name,
MATCH(co.final_id, co.billing_first_name, co.billing_last_name, co.delivery_first_name, co.delivery_last_name, co.order_created)
AGAINST ('$match_against' IN BOOLEAN MODE) AS score
FROM customer_orders AS co
LEFT JOIN customers AS c ON c.id = co.customer_id
LEFT JOIN shops AS s ON s.id = co.shop_id WHERE co.status = '{$os}'
ORDER BY score DESC
LIMIT $offset,$views_page") or die(mysql_error());
我已經搜索遍佈全球的解決這個問題的解決方案。我已經使用UPPER嘗試,改變數據庫排序規則從utf8_general_ci到utf8_bin(二進制),但我的問題仍未解決..
所有的建議都感激..
問候