add post meta value

You dont need to use add_post_meta and update_post_meta for same meta_key.

You can simply use update_post_meta function and this will
add if the meta_key does not exist and will update if meta_key exists.

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