preventing the duplicate wp_insert_post

if no match found for tablerecid insert the post, else add post meta

if (!preg_match('/tablerecid/', $data[ 'post_content' ])){
wp_insert_post
} else {
add_post_meta
}

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