How to insert data into MySQL database from the form created in WordPress site

Basically, i use Contact Form 7 and it’s third party extension for storing values in database i.e.: https://wordpress.org/plugins/contact-form-cfdb7/.

Or, if you want to create a custom form and store the value in database you can Create a Custom Post Type and use wp_insert_post() function to insert your respective values.

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