Код: Выделить всё
$sql = "SELECT artist_id, formated_name FROM artists WHERE formated_name LIKE '".$letter."%' OR formated_name LIKE '0%' OR formated_name LIKE '1%' OR formated_name LIKE '2%'
OR formated_name LIKE '3%' OR formated_name LIKE '4%' OR formated_name LIKE '5%' OR formated_name LIKE '6%' OR formated_name LIKE '7%'
OR formated_name LIKE '8%' OR formated_name LIKE '9%' OR formated_name LIKE '#%'";
Подробнее здесь: https://stackoverflow.com/questions/227 ... ong-values
Мобильная версия