I use php to send and receive data from mysql database my query is
SELECT 
 *
FROM (
  SELECT 
   *
  FROM
   test
  WHERE
   MATCH(word) AGAINST('+hello ')      
) AS fulltext_scan
WHERE 
 fulltext_scan.word REGEXP '^hello '
when I search for english word its working well but when I search for swedish(ä,ö,å) word I got this error
Got error 'nothing to repeat at offset 1' from regexp
I have array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'") in my connection and header('Content-Type: text/html; charset=utf-8');
when I test the query directly from phpmyadmin its working well even with swedish words
I want to use AS for sorting like
SELECT  pages.*, MATCH (head, body) AGAINST ('some words') AS
      AND  column REGEXP '^hello ' relevance,
        MATCH (head) AGAINST ('some words') AS title_relevance
    FROM  pages
    WHERE  MATCH (head, body) AGAINST ('some words')
    ORDER BY  title_relevance DESC, relevance DESC
to get {hello} first
how can I fix that in my php page?
 
    