Код: Выделить всё
sprintf("SELECT robot FROM robots WHERE robot LIKE '%s'",strtolower($user_agent));
Код: Выделить всё
sprintf("SELECT robot FROM robots WHERE robot LIKE '%%s%'",strtolower($user_agent));
Подробнее здесь: https://stackoverflow.com/questions/371 ... of-sprintf
Мобильная версия