如何在 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'
");