SET GLOBAL read_only = ON;
? FLUSH TABLES WITH READ LOCK;
SET GLOBAL read_only = ON;
...
$data->text = 'Заявка test-1. Клиент: ' .$first_name. ' Телефон: +' . $phone;
$data->text = urlencode($data->text); // <- уот-так-уот
$sms = $smsru->send_one($data);
...
SELECT * from table where field REGEXP 'foo|bar|baz';
|
и подсунуть в REGEXP