subscription_url = 'http://subscribe.joywork.ru/incall.php'; $beeline->checkSubscription($row['id']); } mysql_query("update `call_events` set status=0 where status=1 and operator = 'BEELINE' or operator = 'MEGAFON'"); $pdopg = new MysqlPdo(hstpg, ndbpg, userpg, passpg, false, '5432', true); $pdopg->query("update `call_events` set status=0 where status=1 and operator = 'BEELINE' or operator = 'MEGAFON'");