$ifdate = sql_date_proche('column', -8, 'DAY'); $res = sql_select('column', 'table', $ifdate);