wp_insert_post with POST data

Change ‘name’ to something else. Because name is a reserved keyword in WordPress universe. Check this and look for ‘name’ here.

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