LIKE句でvarを使用するにはどうすればよいですか?
次のコードは正しい応答を送信しません...
$query = sprintf("
SELECT
place.ID AS id,
IF(
place.translationID IS NULL,
place.name,
placel10n.text
) AS cityname,
FROM
places AS place
LEFT JOIN `l10n-strings` AS placel10n ON (place.translationID = placel10n.translationID AND placel10n.languageCode = 'de')
WHERE
place.name LIKE CONCAT('$fchar', '%');
AND
place.`status` = '1'
");