I have some problems with a query in MySQL.
I use the character set UTF-8, which I have set in the header.
the connection to MySQL is also set with
mysql_set_charset("utf8", $conn);
My database uses utf8_general_ci
When i echo my query and manually insert it inside phpMyAdmin it works fine.
e.g.
SELECT `project_number` FROM `1` WHERE `project_name`='æøå'
But when I insert this query
$row = mysql_fetch_assoc(mysql_query("SELECT `project_number` FROM `$user_id` WHERE `project_name`='$project_name'"));
$project_number = $row['project_number'];
project_number returns nothing, when i use special characters like æøå, but works when I don't use æøå.