Set post_parent value for the images uploaded by Add Media button into post

Set post_parent value for the images uploaded by Add Media button into post

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