Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
$get= DB::$the->query("SELECT request FROM `statistic` WHERE `id` = '1' "); $get= $get->fetch(PDO::FETCH_ASSOC); DB::$the->prepare("UPDATE statistic SET request=? WHERE id=? ")->execute(array($get['request']+1, '1'));
update statistic set request = (select request from statistic where id = 1) + 1 where id = 1;
update statistic set request = request + 1 where id = 1;