while (true) {
$sql = 'UPDATE `score` AS s, `auto1` AS a
SET s.score = s.score + (a.`card` * 3.75 + a.`cardrack` * 7.5 + a.`videocardroom` * 15)
WHERE s.vk_id = a.vk_id'
$db->query($sql);
// sleep(1); // Подозреваю что апдейт будет выполнятся больше секунды
}
INSERT INTO main (`id`, `nazv`, `text`, `user_id`)
VALUES (9, '{$nazv}', '{$text}', '{$user_id}')
ON DUPLICATE KEY UPDATE
`text`=VALUES(`text`),
`nazv`=VALUES(`nazv`),
`user_id`=VALUES(`user_id`);
select * from `catalog` where (status = 1 and description LIKE '%ADVISE AND AUDIT%') OR title LIKE '%ADVISE AND AUDIT%' OR domain LIKE '%ADVISE AND AUDIT%'
INSERT IGNORE INTO `tags_list` (`word`) VALUES ('рыба'), ('мясо'), ('птица');