Tell me where was wrong in comparison with the date:
$today = date("Ymd"); UPDATE modx_shopkeeper3_orders SET gotov = 1 WHERE status in (1,6,7) and userid = 2 and DATE_FORMAT(date,'%Y-%m-%d')=DATE_FORMAT(".$today.",'%Y-%m-%d') The date in the database is in this form 2017-07-15 14:56:34 , I need to compare without time.
mo.date? - Aleksey ShimanskyjDATE_FORMATnot needed ... you can use DATE - Alexey Shimansky