Merhaba,
$getorder = mysql_query("SELECT * FROM orders WHERE id LIKE '%".$value."%' OR name LIKE '%".$value."%' OR surname LIKE '%".$value."%' OR telephone LIKE '%".$value."%' OR address LIKE '%".$value."%' OR date LIKE '%".$value."%' OR CONCAT_WS(' ', name, surname) LIKE '%".$value."%' ORDER BY id DESC");bu şekilde arama yapıyorum ama ad soyadı birleştirip arama yaptığım zaman algılamıyo sistem. daha doğrusu BURAK BOYLU'yu algılıyor ama ALİ ŞENTÜRK'ü algılamıyo çünkü türkçe karakter var concat_ws'de utf8 nasıl yapılıyo?
Hocam Sorunun mysql 5.5 versiyonunda çözüldüğü belirtilmiş, incelerseniz belki sorununuzu çözebilirsiniz...
It's a well known bug in MySQL. It's fixed in MySQL 5.5
See: http://bugs.mysql.com/bug.php?id=12030
The issue stems from concatenating an integer with a varchar.
The work around is to cast the id (integer) first to a char, and then concatenate, ie:
SELECT CONCAT(cast(id as char), title) FROM utf8_test
share|improve this answer
http://stackoverflow.com/questions/6...arset-in-mysql