Submit Custom Postypes from frontend

http://wpshout.com/wordpress-submit-posts-from-frontend/

Refer above link, we can check user logged in or not in fronted and pass custom post type too while saving post in database.

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