How to change this internal image link parameter using PHP?

If you are using wordpress, this guide might help you –
https://developer.wordpress.org/reference/functions/add_image_size/

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