Advenced custom fields auto fill problem

Ok, fixed. I changed 'post_id' => 'new' to 'post_id' => 'rand()'. It’s working but dont know it shout be like that. Can someone that know php check the code ?

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