$q = mysql_query('SELECT * FROM `keys_constructor` WHERE `number` = "$login" AND `password` = "$password"');
do { // Запускаем дескрипторы
$status = \curl_multi_exec($mh, $active);
$info = \curl_multi_info_read($mh);
if (false !== $info && $info['msg'] == \CURLMSG_DONE && $info['result'] == \CURLE_OK) {
// типа выход
}
\usleep(250000);
} while ($status === \CURLM_CALL_MULTI_PERFORM || $active);
$query = $mysql->query('SELECT COUNT(*) as count FROM `monitor_two` WHERE `date`='сегодня' AND `bysy`='нет'');
$sql = mysqli_query($link, 'SELECT `id`, `name`, `phone`, `email` FROM `my_table`');
$rows = [];
while ($result = mysqli_fetch_array($sql)) {
$rows[] = $result;
}
echo json_encode($rows);
mysqli_close($link);