Url Rewriting a dynamic wordpress page with parameters

 '^offer/([^/]*)/([^/]*)/?',

Why do you have a question mark here at the end, that doesn’t do anything here.

You also need to add_rewrite_tag otherwise it will never work.

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