( "SELECT * FROM kelimeler");
( ile " boşluğudur belki problem tam olarak bilmiyorum ama.
yok hocam "\".$sorgu kısmında ters slash tırnakları bloke ediyor.
$sorgu = $connect->query( "SELECT * FROM kelimeler");
$text= preg_replace("$sorgu[a]",$sorgu[b],$text);
hocam duzenli ifadelere regexlere bi goz atin.