I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

No, it’s not. Single quotes can’t cause redirects.

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