Когда я пытаюсь выполнить этот запрос в моей базе данных:
$mysqli->query("UPDATE
catalogsearch_fulltext
SET data_index = '".$unique_string."'
WHERE MATCH(data_index) AGAINST ('".$savestring."')
AND store_id = '1'");
Это не только не работает, но и очищает мою ВСЮ catalogsearch_fulltext
таблицу. Что я делаю неправильно? Я немного новичок в SQL, так что, надеюсь, это кто-то быстро обнаружит.
Я могу предоставить больше кода по запросу, но я не думаю, что он применим.
Спасибо!
Edit:
$unique_string = "325-FBA-BA-0006-x3|Badger|Enabled|Taxable Goods|Badger - SPF 30+ Anti-Bug Sunscreen, 2.9oz. - (Pack of 3)|47300|You asked, and Badger listened! After receiving many requests for a totally natural combination bug repellent and sunscreen, Badger took their wildly popular SPF 30+ Sunscreen formula and combined it with their Anti-Bug Balm formula to create easy-to-apply, safe, and natural protection for the whole family!|43.35|1"
$string = "the same as above but with duplicat entries in the | Pipe | sections."
Стоит также отметить, что этот запрос находится в цикле, который проходит около 6 записей.