I have lost 4 hours on this thing so far, and it's very very strange. I have the following simple select:
SELECT pl.id_product, pl.link_rewrite as `product_link` 
FROM ps_product_lang pl 
WHERE UPPER(pl.`name`) = UPPER('HAVOLINE EXTRA SAE 10W-40')
My PHP code is the following:
$strsqlGruppe = 'SELECT pl.id_product, pl.link_rewrite as `product_link`
    FROM ps_product_lang pl 
    WHERE UPPER(pl.`name`) = UPPER(\''.$name.'\') ';
echo('<pre>'.$strsqlGruppe.'</pre>');
$ressqlGruppe = mysqli_query($db_conn, $strsqlGruppe);
while ($row = mysqli_fetch_array($ressqlGruppe))
{
    $url = $row['product_link'];
    return $url;
}
There is one record that match for this $name and it does not given as result. I have tried to change the WHERE clause with "WHERE id_product=199" and it works like that. So the problem is with the WHERE clause: UPPER(pl.name) = UPPER('HAVOLINE EXTRA SAE 10W-40') .
I have tried even STRCMP too but no result. What am I doing wrong?

