Ostatnio zrobiłem własną funkcje w mysql do zmiany polskich znaków na ich odpowiedniki
DELIMITER $$
CREATE FUNCTION `bez_pl_diakrytycznych`(t TEXT) RETURNS TEXT
BEGIN
SET t = REPLACE(t, 'ą', 'a');
SET t = REPLACE(t, 'Ą', 'A');
SET t = REPLACE(t, 'ć', 'c');
SET t = REPLACE(t, 'Ć', 'C');
SET t = REPLACE(t, 'ę', 'e');
SET t = REPLACE(t, 'Ę', 'E');
SET t = REPLACE(t, 'ł', 'l');
SET t = REPLACE(t, 'Ł', 'L');
SET t = REPLACE(t, 'ń', 'n');
SET t = REPLACE(t, 'Ń', 'N');
SET t = REPLACE(t, 'ó', 'o');
SET t = REPLACE(t, 'Ó', 'O');
SET t = REPLACE(t, 'ś', 's');
SET t = REPLACE(t, 'Ś', 'S');
SET t = REPLACE(t, 'ż', 'z');
SET t = REPLACE(t, 'Ż', 'Z');
SET t = REPLACE(t, 'ź', 'z');
SET t = REPLACE(t, 'Ź', 'Z');
return t;
END
Problem w tym że podczas testowania funkcji w phpmyadmin wszystko dobrze działa ale gdy robię te same zapytanie przez php to nic nie wychodzi