How do i load a different template for different users screen width

You can get the screen width through JavaScript or jQuery, please check out the answer to the similar question over here..

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