It is necessary to get all the records for the last 30 days (at the time the time is given as date bigint (20) and is written there via time ()) Request:
SELECT `id` FROM `product` WHERE `date` BETWEEN '".time()-30."' AND '".time()."' Nothing gives even in the interval there are fields for sampling
SELECTid `FROMproductWHEREdateBETWEEN FROM_UNIXTIME (". time () - 30. ") AND FROM_UNIXTIME (". time (). ")` same thing - ddeadlink