post expire after x days

You’re comparing strings. For dates this will only ever work out if you use a yyyymmdd format or similar.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)