Allow front end users to add data to a custom post type

Rake a look at wp_insert_post() which handles the insertion of new posts to the database.

and there are many example how to create posts from the front end here, here, here, here and here:

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